[plug] multi-file find & replace

Matt Kemner zombie at networx.net.au
Fri Oct 23 16:00:12 WST 1998


On Fri, 23 Oct 1998, Bevan Broun wrote:

> for f in `find . -name '*.htm' -print`;do
> >g=`echo $f | sed -e 's/$/l/'`
> >cp $f $g
> >done

You'd probably want to use "mv" not "cp" there if you're just renaming
files. :)

See the list archives for doing similar things using the tcsh and zsh
shells. :)

 - Matt



More information about the plug mailing list