Created
April 1, 2014 23:46
-
-
Save adam-lynch/9925312 to your computer and use it in GitHub Desktop.
Prefixes all files in the current directory with `preifx_`. From http://stackoverflow.com/questions/6140134/add-prefix-to-all-images-recursive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name \* -print0 | perl -MFile::Basename -0nle 'rename $_, dirname($_)."/prefix_".basename($_)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment