Skip to content

Instantly share code, notes, and snippets.

@0bach0
Last active April 4, 2020 14:40
Show Gist options
  • Save 0bach0/7ffee21de5701cd664003e1161a305fe to your computer and use it in GitHub Desktop.
Save 0bach0/7ffee21de5701cd664003e1161a305fe to your computer and use it in GitHub Desktop.
Remove unused character in filename
# Input format `CD-47 9課 聴解2 漫画アニメが学べる大学.mp3`
# Output `CD-47.mp3`
find . | while read f; do mv "$f" "${f:0:10}.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment