Skip to content

Instantly share code, notes, and snippets.

@xcollantes
Last active February 11, 2024 06:49
Show Gist options
  • Select an option

  • Save xcollantes/e32e1886ffee8f5224cb96ec3a355957 to your computer and use it in GitHub Desktop.

Select an option

Save xcollantes/e32e1886ffee8f5224cb96ec3a355957 to your computer and use it in GitHub Desktop.
Bash script to rename.
ext="webp" ; for f in * ; do if [[ $f =~ $ext ]] ; then mv "$f" "./$RANDOM.$ext" ; fi ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment