On Wed, 2003-06-11 at 20:30, Robert P. J. Day wrote: > > In Perl, for each HTML file, you would do on the command line: > > > > perl -pi.bak -e 's/\.gif\b/.png/g;' the_file.html > > > > this will first create a backup copy named the_file.html.bak, then > > find all the strings _ending_ in .gif, and replace that with .png . > > > > Try on disposable copies before going for it, however, and remember > > than the recipe above is case sensitive, will ignore .GIF, .Gif, etc.. > > and if you *want* it to be case-insensitive, just use > > s/.../.../gi (that is, add the "i") > > rday > Many thanks to all who replied so quickly. Although magic to me the script has proven to work like a charm. It now lives happily in my dir with useful scripts :) Regards, Patrick