Created
October 3, 2019 04:58
-
-
Save joerx/50aae01515158b993239be0fc3e12c67 to your computer and use it in GitHub Desktop.
Batch rename 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
# for discussion and alternatives, see https://unix.stackexchange.com/questions/227662/how-to-rename-multiple-files-using-find | |
find . -type f -name general.tf -not -path '*/.terraform/*' -exec sh -c 'x="{}"; mv "$x" "${x/general/backend}"' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment