The file size is huge and I have to extract only the lines that match a certain location code which is of variable ( varying from 2 bytes to 8 bytes) length.
I cannot use normal grep since that may give undesirable results. When I search for loc cd mas, if I give
grep mas, it matches with name thomas...
Since this is a fixed length file, I know the position where to search. Is there any command to search at particular position(from 620-628 in my case) and extract the matching lines?