piping into a python script
Donn Ingle
donn.ingle at gmail.com
Thu Jan 24 11:12:39 EST 2008
Paddy wrote:
> ls *.a | ./fui.py -f - *.b
To be sure I grok this: I am seeing the single dash as a placeholder for
where all the piped filenames will go, so *.b happens after *.a has been
expanded and they all get fed to -f, right?
I'm also guessing you mean that I should detect the single dash and then go
look for stdin at that point. How do I detect a lack of stdin?
Thanks,
\d
More information about the Python-list
mailing list