I\'m fairly new to python coming from C/C++, I was wondering how I would get my \'main.py\' to reconize/use the imput given from a bash shell as:
pyth
Using the fileinput module would be most appropriate here, and more flexible.
fileinput
http://docs.python.org/library/fileinput.html
import fileinput for line in fileinput.input(): process(line)
In addition to supporting stdin, it can also read from files listed as arguments.