Created
June 2, 2023 04:54
-
-
Save BETLOG/11602d0f5613d513ca26c46d533c4eb3 to your computer and use it in GitHub Desktop.
list-all_protonVer-steamId-appName.sh
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 | |
# betlog - 2023-03-03--20-32-15 | |
# | |
unset data protonVer steamId steamIdList | |
while IFS= read -r data;do | |
# echo "data:$data" | |
protonVer=$(cat "$data") | |
protonVer=$(printf '%-15s' $protonVer) | |
# echo "protonVer:$protonVer" | |
steamId=$(echo "$data"|grep -o -E '\/[0-9]*\/'|sed 's|\/||g') | |
# echo "steamId:>>$steamId<<" | |
[[ ! -f /media/user/steamdata/.steam/steam/steamapps/appmanifest_${steamId}.acf ]] && continue | |
appName=$(grep '"name"' /media/user/steamdata/.steam/steam/steamapps/appmanifest_${steamId}.acf|awk -F'"' '{print $4}') | |
# echo "appName:$appName" | |
steamIdList+="$(printf '%-15s %-15s %s' $protonVer $steamId "$appName\\n")" | |
done< <(find /media/user/steamdata/steam-compatdata/[0-9]*/version -maxdepth 1 -type f|grep -E '\/[0-9]*\/') | |
echo -ne "$steamIdList"|sort -k2 -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment