2012年1月16日星期一

rename your files with linux command - rename

Today, I experienced rename, linux command to modify file names.

(1) mv can help you the rename one file name to another

(2) while, rename (renames multiple files) can modify multiple files names in one run. You just need to set rules (same as you use sed) for identifying and replacing. And it can be used to translate uppercase names to lower ones

rename 's/dog/google/g' *.txt

rename 'y/A-Z/a-z/' *   

没有评论:

发表评论