On Sat, Jul 01, 2000 at 07:38:45PM +1000, Howard Lowndes wrote:
> Why doesn't this do what I think it should do, which is substritute
> "'get'" with "'post'":
> 
> sed -e "s/\'get\'/\'post\'/" infile >outfile

It almost certainly does get some of them, but you need to put a
"g" option at the end, to make sure that it gets them all:

sed -e "s/\'get\'/\'post\'/g" infile >outfile

Without g it will only do one edit per line.

-- 
Andrew
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to