On Wed, 2003-03-19 at 08:23, David Mandala wrote: > Try this instead of the space. I just had a long fight with sed myself. > > edit fix.sh and put in it: > > #!/bin/sh > > echo "s/^foobar[[:blank:]]/foo bar/p" > edit.lst > > sed -f edit.lst processedfile > processedfile.fixed > > rm -f edit.lst > > > Then run it. If I add the ;p I get a different error but the insertion > of the "foo bar" works fine. > > It works, thanks! Still, one would think i could get away with not having to store it in a temp. file within a bash script. What exactly is bash doing that is mangling the sed statement?