J
Jon Schull
I want to write a filter that will take input from files on the
command line and/or from stdin.
But if nothing has been piped to stdin, I don't want my program to
hang--I want it to do something else.
This is standard behavior for pipeable-programs I believe, but I can't
figure out how to do it...neither by reading from stdin nor by using
the fileinput module.
Thanks in advance!
command line and/or from stdin.
But if nothing has been piped to stdin, I don't want my program to
hang--I want it to do something else.
This is standard behavior for pipeable-programs I believe, but I can't
figure out how to do it...neither by reading from stdin nor by using
the fileinput module.
Thanks in advance!