On Wed, Jun 11, 2003 14:28:42 at 02:28:42PM -0400, Steve McQ (steve@xxxxxxxxxxxxxxx) wrote: > > After converting various gifs to png I still need to replace all > > references to <pic>.gif in several html files to <pic>.png. Is there an > > easy way to do this other than manually? Some sed/awk magic anyone? > > perl -pi -e 's/pic.gif/pic.png/igs' *.html > > Will replace all instances of pic.gif with pic.png. > yes, but not picture.gif with picture.png. That's why it's better to not mention the base file name at all. Ciao, Marco Fioretti -- Marco Fioretti m.fioretti, at the server inwind.it Red Hat for low memory http://www.rule-project.org/en/ Needs are a function of what other people have.