Skip to content

Instantly share code, notes, and snippets.

@bobbyshaw
Created January 2, 2020 09:55
Show Gist options
  • Save bobbyshaw/9ad6c4e78255710f1e5fe483bacf5b36 to your computer and use it in GitHub Desktop.
Save bobbyshaw/9ad6c4e78255710f1e5fe483bacf5b36 to your computer and use it in GitHub Desktop.
Rename files that have %20 instead of a space in them
#!/bin/bash
for x in ./*
do mv -- "$x" "${x//%20/ }"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment