does it have to be sed?
On Wed, 30 Jun 2004 12:05:09 +1200 Phill Coxon <[EMAIL PROTECTED]> wrote: > Hey guys. > > Can someone help me with a sed / bash script that takes an input file > and adds quotes and square brackets to the contents of each line, > outputting each variation to a new file? > > i.e.: > > Input file: > > foo > bar > foo bar wizz bang > > Output file: > > foo > "foo" > [foo] > bar > "bar" > [bar] > foo bar wizz bang > "foo bar wizz bang" > [foo bar wizz bang" > > > Thank you. > -- Nick Rout <[EMAIL PROTECTED]>
