piping into a python script
Donn Ingle
donn.ingle at gmail.com
Fri Jan 25 09:42:21 EST 2008
Nick Craig-Wood wrote:
> This iterates over the lines of all files listed in sys.argv[1:],
> defaulting to sys.stdin if the list is empty. If a filename is '-', it
> is also replaced by sys.stdin. To specify an alternative list of
> filenames, pass it as the first argument to input(). A single file
> name is also allowed.
Yeah it has been discussed. It seems the one problem with it is that it
opens each file. I only want the filenames.
Anyway, this has more-or-less been solved now.
Thanks,
\d
More information about the Python-list
mailing list