Last active
January 23, 2023 14:19
-
-
Save nestserau/1e3f425e5fc09932026a to your computer and use it in GitHub Desktop.
bash: Move and rename multiple files
This file contains 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