Skip to content

Instantly share code, notes, and snippets.

@BenMcLean
Last active July 30, 2022 13:55
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 BenMcLean/52ca9cf707566398875fdc38c67da4d5 to your computer and use it in GitHub Desktop.
Save BenMcLean/52ca9cf707566398875fdc38c67da4d5 to your computer and use it in GitHub Desktop.
#!/bin/bash
IFS='
'
for f in *.png; do
mv "$f" "$(basename -s .png "$f").m3u.png"
done
#!/bin/bash
IFS='
'
folder=$(basename -s .cue "$1").m3u
mkdir $folder
for cuefile in "$@"
do
mv "$cuefile" "$folder/$cuefile"
echo "$cuefile" >> "$folder/$folder"
for f in $(basename -s .cue "$cuefile")*.bin; do
mv "$f" "$folder/$f"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment