SLUG Mailing List Archives
Re: [SLUG] splitting text files by key word lines ?
- To: "Voytek" <lists@xxxxxxxxxx>
- Subject: Re: [SLUG] splitting text files by key word lines ?
- From: Tony Green <tgreen@xxxxxxxxxxx>
- Date: Sat, 4 Sep 2004 09:10:19 +1000
- Cc: slug <slug@xxxxxxxxxxx>
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
egrep $I bigfile > sorted-$I
Tony Green <tgreen@xxxxxxxxxxx>