Why am I getting a syntax error for the following single python liner code?
python -c 'import re; if True: print "HELLO";' File "<string>", line 1 import re; if True: print "HELLO"; ^ SyntaxError: invalid syntax
The following code works just fine
python -c 'if True: print "HELLO";'
How can I change my one line to execute my intended script on one line from the command line?
python command-line bash shell
AffluentOwl
source share