Skip to content

Instantly share code, notes, and snippets.

@adam-lynch
Created April 1, 2014 23:46
Show Gist options
  • Save adam-lynch/9925312 to your computer and use it in GitHub Desktop.
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
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