[PLUG] replacing multipule instances of text

Paul Heinlein heinlein at madboa.com
Wed Oct 1 06:34:02 UTC 2003


On Wed, 1 Oct 2003, David Fleck wrote:

> Just curious - does
>
>  sed -e "s!$oldurl!$newurl!g" < $f > /var/www/rctc/$f
>
> do anything that
>
>  sed -e "s!$oldurl!$newurl!g" $f > /var/www/rctc/$f
>
> doesn't?

No. For some reason having nothing to do with reality, I always pipe
stuff into sed rather than pointing it at a file. I don't know where I
picked up that habit.

--Paul Heinlein <heinlein at madboa.com>




More information about the PLUG mailing list