output in filke pythong print bash stream redirection next line code example Example: redirect python output to file $ python foo.py > file