Rename files in Mac OS
In Linux there is a command line
rename 'expression' files
through which a bunch of files can be renamed according to a rule specified by the
expression. Without this command (e.g. in Mac OS), it can still be done with for loop.
for f in `ls files`; do fn = `echo $f | sed -e 'expressions'`; mv $f $fn; done
— Last modified: xiaoke 2013/10/16 21:01