SLUG Mailing List Archives
Re: [SLUG] splitting text files by key word lines ?
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] splitting text files by key word lines ?
- From: "Voytek" <lists@xxxxxxxxxx>
- Date: Sat, 4 Sep 2004 15:36:09 +1000 (EST)
- User-agent: SquirrelMail/1.5.0
<quote who="Tony Green">
> for I in keyword1 keyword2 keyword3
> egrep $I bigfile > sorted-$I
not sure if I explained my problem properly
my keywords are derived from the file as:
# grep 'Current Database' koala
-- Current Database: atom
-- Current Database: commodore
-- Current Database: digiprint
-- Current Database: documents
and, I'd like to split it like from/to on each keyword line
from -- Current Database: atom
to -- Current Database: commodore
and so on... is it doable ?