From Sole Wigeon, 2 Years ago, written in Bash.
Embed
  1. pi@retropie:~/.emulationstation/scripts/quit $ for filepath in $(find $LOCALPATH -name *.srm); do dir=$(echo $filepath | awk -F'/' '{print $(NF-1)}'); echo cp -v $filepath $BACKUPPATH/$dir/$(basename $filepath); done;
  2. cp -v /home/pi/RetroPie/roms/n64/Super /mnt/megabyte/Retro Games/Roms//n64/Super
  3. cp -v Mario /mnt/megabyte/Retro Games/Roms//Mario/Mario
  4. cp -v 64 /mnt/megabyte/Retro Games/Roms//64/64
  5. cp -v (USA).srm /mnt/megabyte/Retro Games/Roms//(USA).srm/(USA).srm
  6. cp -v /home/pi/RetroPie/roms/n64/Mario /mnt/megabyte/Retro Games/Roms//n64/Mario
  7. cp -v Kart /mnt/megabyte/Retro Games/Roms//Kart/Kart
  8. cp -v 64 /mnt/megabyte/Retro Games/Roms//64/64
  9. cp -v (E) /mnt/megabyte/Retro Games/Roms//(E)/(E)
  10. cp -v (V1.1) /mnt/megabyte/Retro Games/Roms//(V1.1)/(V1.1)
  11. cp -v [!].srm /mnt/megabyte/Retro Games/Roms//[!].srm/[!].srm
  12. cp -v /home/pi/RetroPie/roms/n64/Yoshi's /mnt/megabyte/Retro Games/Roms//n64/Yoshi's
  13. cp -v Story /mnt/megabyte/Retro Games/Roms//Story/Story
  14. cp -v (USA) /mnt/megabyte/Retro Games/Roms//(USA)/(USA)
  15. cp -v (En,Ja).srm /mnt/megabyte/Retro Games/Roms//(En,Ja).srm/(En,Ja).srm
  16. cp -v /home/pi/RetroPie/roms/snes/Super /mnt/megabyte/Retro Games/Roms//snes/Super
  17. cp -v Mario /mnt/megabyte/Retro Games/Roms//Mario/Mario
  18. cp -v World /mnt/megabyte/Retro Games/Roms//World/World
  19. cp -v (USA).srm /mnt/megabyte/Retro Games/Roms//(USA).srm/(USA).srm
  20. cp -v /home/pi/RetroPie/roms/snes/Super /mnt/megabyte/Retro Games/Roms//snes/Super
  21. cp -v Mario /mnt/megabyte/Retro Games/Roms//Mario/Mario
  22. cp -v All-Stars /mnt/megabyte/Retro Games/Roms//All-Stars/All-Stars
  23. cp -v + /mnt/megabyte/Retro Games/Roms//+/+
  24. cp -v Super /mnt/megabyte/Retro Games/Roms//Super/Super
  25. cp -v Mario /mnt/megabyte/Retro Games/Roms//Mario/Mario
  26. cp -v World /mnt/megabyte/Retro Games/Roms//World/World
  27. cp -v (USA).srm /mnt/megabyte/Retro Games/Roms//(USA).srm/(USA).srm