Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
find a/ -type f -print | while read f
do
mv "$f" "$(sed 's/[^0-9A-Za-z_./()- ]/_/g' <<< "$f")"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment