Created
July 18, 2017 22:05
-
-
Save oprypin/4e11096b2e54b704e423befa29409eb5 to your computer and use it in GitHub Desktop.
Find out engine versions of all your Unity games on Linux
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
cd ~/.steam/steam/steamapps/common | |
for d in *; do | |
for f in "$d"/*; do | |
file "$f" | grep -q 'ELF ' && | |
strings "$f" | grep -q 'UnityPlayer/' && | |
echo "$(strings "$f" | grep -P -m1 -o '(?<=UnityPlayer/)[^ ]+') $d" && | |
break | |
done | |
done | sort -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment