Sunday, February 8, 2015

rename multiple files in command line

# for i in `find . -name '*.png'`; do mv $i `echo $i | sed s/OldString/NewString/`; done

or

# rename OldString NewString *.txt

No comments: