Last active
July 30, 2022 13:55
-
-
Save BenMcLean/52ca9cf707566398875fdc38c67da4d5 to your computer and use it in GitHub Desktop.
Move .cue/.bin CD images into .m3u directories as described in https://gitlab.com/es-de/emulationstation-de/-/blob/master/USERGUIDE.md#multiple-game-files-installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=' | |
' | |
for f in *.png; do | |
mv "$f" "$(basename -s .png "$f").m3u.png" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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