Skip to content

Instantly share code, notes, and snippets.

@xarg
Created August 18, 2010 14:59
Show Gist options
  • Save xarg/535007 to your computer and use it in GitHub Desktop.
Save xarg/535007 to your computer and use it in GitHub Desktop.
find . -name "*.pattern" -exec bash -c "mv \"\$1\" \"\`echo \$1 | sed s/.pattern//\`\"" -- {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment