find . -type f -iname "*.jpg" -exec rename 's/&/_/' {} \;Same thing, but on systems that don't have 'rename' (like OS X)
find . -name '*.jpg' -type f -exec bash -c 'mv "$1" "${1/\/\&/_/}"' -- {} \;
find . -type f -iname "*.jpg" -exec rename 's/&/_/' {} \;Same thing, but on systems that don't have 'rename' (like OS X)
find . -name '*.jpg' -type f -exec bash -c 'mv "$1" "${1/\/\&/_/}"' -- {} \;
No comments:
Post a Comment