Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] splitting text files by key word lines ?



On 03/09/2004, at 10:19 PM, Voytek wrote:

I have an MySQL 'whole server' dump which is somewhat not very small at
about 91M and 400,000 lines, how can I spilt it into separate unequal
files, based on key word line ?




for I in keyword1 keyword2 keyword3
do
egrep $I bigfile > sorted-$I
done

--
Tony Green <tgreen@xxxxxxxxxxx>