Renaming multiple files en masse?

Richard Smith rdls at rdls.net
Wed Apr 12 07:52:38 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'




More information about the Ukfreebsd mailing list