max(01)* wrote: > i was wondering, what's the simplest way to echo the standard input to > the standard output, with no modification. ... > ps: in perl you ca do this: > > ... > while ($line = <STDIN>) > { > print STDOUT ("$line"); > } > ...
I guess you could, but there wouldn't be much point. In Perl, you can do this with just command-line flags: perl -pe '' input.txt Or if you really want something to put in a file: print <> Here's the closest thing I could come up with in Python: import sys for line in sys.stdin: print line, -- http://mail.python.org/mailman/listinfo/python-list