abacus
Civil/Environmental
- Apr 15, 2002
- 1
I am trying to use the grep command to search for lines that contain a particular string at a certain character position. Is there any way to tell grep to only search for the string at a specified position of each line?
Example-
00001JIM SMITH 35LL
00002MIKE JONES 30LL
00003STEVE SIMMS 02LL
Let's say I only want to return lines that contain '02' at the 20th character position.
Thanks in advance...
Example-
00001JIM SMITH 35LL
00002MIKE JONES 30LL
00003STEVE SIMMS 02LL
Let's say I only want to return lines that contain '02' at the 20th character position.
Thanks in advance...