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

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

 



Using an editor is always preferable.

I'll sugest emacs with etags (this way you can confirm edits
before they happen)

1. create the tags file (TAGS in the current dir).

etags *.html
 or
find . -type f -name "*.html" -print | xargs etags

2. load up the tags file in emacs
M-x visit-tags-table
    TAGS   <--- tags file

3. Now do a tags-search and replace
M-x tags-query-replace
   .gif   <--- replace
   .png   <--- with

Satish


On Wed, 11 Jun 2003, Patrick wrote:

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




[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