I have a list of numbers like below:
1 0/1
2 1/1
3 1/1
4 1/1
5 1/1
6 1/1
7 0/1
8 0/1
If the column 2 is "1/1" for consecutive rows, I would like to report the start and end of positions, say, in here, it should be: 2-6
How should I do this applying some simple bash code, or python if necessary?
many thanks