Last active
November 13, 2019 03:10
-
-
Save lucmann/20851c90675a68bbc081743196756ee0 to your computer and use it in GitHub Desktop.
rename files in batch
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 . -name '*.crx' | sed "s;\(\.\/.*\)\.crx$;mv \1.crx \1.zip;" | bash | |
# A simpler solution | |
find . -type f | xargs -I{} sh -c "mv {} {}.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment