<quote who="Michael Chesterton">
> Practicing my awk, try this
>
> awk 'BEGIN { bakfile = "nodb.sql" }
> { if (/^-- Current Database:/)
> bakfile = $4 ".sql"
> }
> {
> print >bakfile
> }' < koala
>thanks, Michael ! as far as I can tell, it worked 'as desired' -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
