How can I detect a sequence of “hollows” (holes, lines not matching a pattern) bigger than n in a text file?
问题 Case scenario : $ cat Status.txt 1,connected 2,connected 3,connected 4,connected 5,connected 6,connected 7,disconnected 8,disconnected 9,disconnected 10,disconnected 11,disconnected 12,disconnected 13,disconnected 14,connected 15,connected 16,connected 17,disconnected 18,connected 19,connected 20,connected 21,disconnected 22,disconnected 23,disconnected 24,disconnected 25,disconnected 26,disconnected 27,disconnected 28,disconnected 29,disconnected 30,connected As can be seen, there are