then change holli's command line statement from perl -n -e "print if /^abcde/ && /PARTNAME$/" c:\somefile.txt>k:\1\somefile.txt to perl -n -e "print if /^xyzdf/ && /xyzdf$/" c:\somefile.txt>k:\1\somefile.txt
If you don't understand this I really recommend you read perlre
Update: Somehow missed reading "line directly above", so ignore the rest...except for reading perlre that's always a good idea if you haven't
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re^4: looking for speed!! large file search and extract
by kutsu
in thread looking for speed!! large file search and extract
by smbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |