I am using grep to extract some exact numbers in column #2 of a long file.
I am using the following code:
grep -e "^71161 |^71072 |^72617 " mainfile > outputfile
This does nothing in outputfile
Please help.
My file is like this:
Date ID STN SUPER LAT LONG OBS VAR
2014060106 71072 146 S000438 48.37 270.68 2 0
2014060106 71108 12 71108 49.03 237.63 0 0.04
2014060212 71108 12 71108 49.03 237.63 0 0.16
2014060212 71120 12 71120 54.4 249.73 0 0
2014060212 71123 12 S000400 53.32 246.42 0 0.11
2014060212 71125 12 S000961 54.13 251.48 0.05 0.00
2014060212 71140 12 S000388 49.92 260.05 2 0.21
2014060212 71150 146 71150 50.45 259.4 1 2.21