Rename files using pattern

A useful snippet that allows you to rename files using a pattern

by humancoder 1 year, 6 months ago and tagged with: bash utils
1
find . -name "*.pattern" -exec bash -c "mv \"\$1\" \"\`echo \$1 | sed s/.pattern//\`\"" -- {} \;

Currently 0 comments

To post a comment, you must login.