Showing posts with label unix rename files with single command. Show all posts
Showing posts with label unix rename files with single command. Show all posts

Wednesday, September 29, 2010

How to rename files with single command?

find . -type f -name '*<current_string>*.*' | perl -nle'$o=$_; s/<current_string>/<new_string>/g; rename $o,$_;'