Well I first did
grep -E '1102|1002' filename > newfilename
This work fine. But if the lines are like this, then my problem start. In line two the numbers 1102 is named, but this is not in the position I need to check. So with the grep it won't work.
The next office id is 1022...
From these lines I want to place all lines with the office id 1002 and 1102 in an new file. The office id start at character 22.
The next office id. 100200908273292s This is the end of line one.
The next office id. 102200908273292s This is the end of line two.
The next office id...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.