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 <[EMAIL PROTECTED]>

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to