I'm not sure whether the OP's use of grep implies that there might be more than one record with that ID but, if not, it might be an idea to avoid reading the rest of the file once you've found the record. Something like
$ perl -ne ' > next unless /9344151299/; > print; > last;' /tmp/Config1
I hope this is of interest.
Cheers,
JohnGG
In reply to Re^2: File search using Grep
by johngg
in thread File search using Grep
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |