<quote who="Tony Green">

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

Tony, thanks

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
file 'atom.sql'

and so on... is it doable ?



-- 
Voytek
-- 
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