Created
July 2, 2023 08:30
-
-
Save rg3915/6f47f128bcdc048ebd1101b4b94eb9f6 to your computer and use it in GitHub Desktop.
Copy and rename files recursively
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 backend/core/templates -type f -name "*_*" -exec bash -c 'mv "$0" "${0//_/-}"' {} \; | |
find backend/core/templates -type f -name "*_light_*" -exec bash -c 'mv "$0" "${0//_light_/_}"' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment