Skip to content

Instantly share code, notes, and snippets.

@oprypin
Created July 18, 2017 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oprypin/4e11096b2e54b704e423befa29409eb5 to your computer and use it in GitHub Desktop.
Save oprypin/4e11096b2e54b704e423befa29409eb5 to your computer and use it in GitHub Desktop.
Find out engine versions of all your Unity games on Linux
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