Print only the lines with succeeding dates
The 1st column represents a 4 position date (e.g. 10/02). I want print only the lines with succeeding dates (e.g. 10/01, 10/02, 10/15, 10/16, 10/20, 10/21, 10/29 & 10/30).
File named test
Test:
1001 1715 3bc4r
1002 1927 3aclr
1002 2127 01iqq
1002 2227 3j1ai
1004 2021 3x1mq
1006 1947 yj1vd
1011 0007 s7tem
1015 1448 05p2l
1016 1248 3j8nk
1020 2137 0aakg
1021 2138 0aakg
1026 2045 xuakr
1029 2110 3alzt
1029 2310 0aakg
1030 0010 3jf24
Desired Output:
1001 1715 3bc4r
1002 1927 3aclr
1002 2127 01iqq
1002 2227 3j1ai
1015 1448 05p2l
1016 1248 3j8nk
1020 2137 0aakg
1021 2138 0aakg
1029 2110 3alzt
1029 2310 0aakg
1030 0010 3jf24
Any help would be appreciated.
Last edited by msims75252; 01-15-2019 at 02:38 AM.
|