-
-
Save ZtupidTS/e685feb54666065d046b7c51e2f4e5ec to your computer and use it in GitHub Desktop.
bash: Move and rename multiple files
This file contains hidden or 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 /path/to/directory -name "*.ext" -exec bash -c 'mv {} $(echo {} | sed -e "s/foo/bar/")' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment