SLUG Mailing List Archives
<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