a file contains lines beginning with:
I need to get only those line which begins with >= 2 (the digit before "-")
when I sort it and print all lines after first matched ^02- it doesn't work in case there are no ^02- on the input (but there are bigger then 2 matches - e.g. "03-" etc,.)
Code:
00-00:29
00-22:01
120-32:21
01-01:04
00-00:06
00-22:50
00-00:51
00-00:12
00-22:06
00-00:15
01-01:25
00-01:28
00-04:09
01-02:19
00-01:50
00-04:44
00-03:22
04-23:31
00-01:09
00-22:06
00-01:40
00-00:02
00-22:06
00-00:15
00-22:06
00-22:01
00-00:29
00-22:07
00-00:12
04-23:31
00-03:22
01-01:25
00-00:51
345-33:44
I need to get only those line which begins with >= 2 (the digit before "-")
when I sort it and print all lines after first matched ^02- it doesn't work in case there are no ^02- on the input (but there are bigger then 2 matches - e.g. "03-" etc,.)