Created
August 20, 2019 00:43
-
-
Save Sinistral2099/b90f4219705e84d6f200342cfea97387 to your computer and use it in GitHub Desktop.
Bash Shell script to clear last played games in Emulation Station
This file contains 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/sh | |
#clear_played.sh | |
for f in /home/pi/RetroPie/roms/**/gamelist.xml | |
do | |
echo "file: $f" | |
grep -e lastplayed -e playcount -v $f > "$f.tmp" | |
mv -f "$f.tmp" $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment