in reply to looking for speed!! large file search and extract
orc:\> perl -n -e "print if /^abcde.+PARTNAME$/" c:\somefile.txt>k:\1\so +mefile.txt
whatever is faster.c:\> perl -n -e "print if /^abcde/ && /PARTNAME$/" c:\somefile.txt>k:\ +1\somefile.txt
substr() c:\> perl -n -e "print if substr($_,0,5) eq q(abcde) && substr($_,-9) +eq qq(PARTNAME\n)" c:\somefile.txt>k:\1\somefile.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: looking for speed!! large file search and extract
by Roy Johnson (Monsignor) on Jan 12, 2005 at 16:03 UTC | |
by smbs (Acolyte) on Jan 12, 2005 at 17:00 UTC | |
by Tanktalus (Canon) on Jan 12, 2005 at 17:07 UTC | |
by Roy Johnson (Monsignor) on Jan 12, 2005 at 17:18 UTC | |
by kutsu (Priest) on Jan 12, 2005 at 17:08 UTC | |
by holli (Abbot) on Jan 12, 2005 at 19:19 UTC | |
by smbs (Acolyte) on Jan 13, 2005 at 09:39 UTC | |
by holli (Abbot) on Jan 13, 2005 at 10:14 UTC |