Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active June 2, 2020 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/39f689dc5d70e7757e0e to your computer and use it in GitHub Desktop.
Save ryanburnette/39f689dc5d70e7757e0e to your computer and use it in GitHub Desktop.
Remove query parameters from filenames
#!/usr/bin/env bash
FILES=*
for f in $FILES
do
mv $f ${f%%\?*};
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment