Renaming multiple files en masse?

Mark Blackman tmb at sophos.com
Wed Apr 12 10:13:32 BST 2000


> Mark Blackman wrote:
> > 
> > sorry couldn't resist..(as its only a suffix change..)
> > 
> > sh -c 'for fname in *.html ; do mv $fname ${fname%.html}.htm ; done'
> 
> sorry couldn't resist (as it's only a trailing letter deletion) :-) :-)
> 
> sh -c 'for f in *.html; do mv $f ${f%l}; done'

indeed. heh-heh.. :)





More information about the Ukfreebsd mailing list