I have a large file containing millions of record. My purpose is to extract 7 characters immediately after text '19' from this file (including text '19') and save the result in new file.
So, my OUTPUT would be as under :
191234561
194567894
192789005
198839408
and so on.....
Thanks for you quick response. But what i want is to search for '19' in input file and then save the seven character adjacent to text '19' in input file to output file.
Above command is searching only when line starts with '19'. Please tell me how can i manipulate it to work even when '19' is present anywhere inside the line.