Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Created January 31, 2017 02:14
Show Gist options
  • Save kenzo0107/a1b9f836a60546ff515efd0518f43d58 to your computer and use it in GitHub Desktop.
Save kenzo0107/a1b9f836a60546ff515efd0518f43d58 to your computer and use it in GitHub Desktop.
#!/bin/sh
find . -type f -name '*.mp3.mp3' | \
while read f; do
mv "$f" "$(echo $f | sed 's/\.[^\.]*$//')"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment