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

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

 



stick the files in a directory named gif
create a sibling directory png
then execute
for f in $(ls gif/*.html)
do
 cat $f|sed -e "s/.gif/.png" >png/$(basename $f)
done

At least I think that will work. You may need to escape the period if gif
appears as part of a word in the one of the files.

-----Original Message-----
From: Patrick [mailto:shrike@xxxxxxxxxxxxxxxxx]
Sent: Wednesday, June 11, 2003 8:24 PM
To: shrike-list@xxxxxxxxxx
Subject: Howto replace .gif with .png in several html files?


Hi,

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?

Thanks,
Patrick
  


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list




[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