Re: Howto replace .gif with .png in several html files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.

Hope that helps,
Steve

-- 
Steve McQ              | http://www.tigertrails.com 
steve@xxxxxxxxxxxxxxx  | Linux Registered User: 294367




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux