Skip to content

Instantly share code, notes, and snippets.

@Sarverott
Created March 8, 2023 17:23
Show Gist options
  • Save Sarverott/d33c4e46924a105f4e32001273101ed9 to your computer and use it in GitHub Desktop.
Save Sarverott/d33c4e46924a105f4e32001273101ed9 to your computer and use it in GitHub Desktop.
idea of unification of python version detection while lounching
if [ $(cat "$1" |grep "print " -c) == 0 ];
then
python2 "$1";
else
python3 "$1";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment