1 2 3 4 5 6
import sys with open(sys.argv[1]) as fd: for line in fd.readlines(): sys.stdout.write(line) sys.stderr.write(line)