Skip to content

Instantly share code, notes, and snippets.

@lucmann
Last active November 13, 2019 03:10
Show Gist options
  • Save lucmann/20851c90675a68bbc081743196756ee0 to your computer and use it in GitHub Desktop.
Save lucmann/20851c90675a68bbc081743196756ee0 to your computer and use it in GitHub Desktop.
rename files in batch
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