using python with -c (as a inline execution in shell)

Batista, Facundo FBatista at
Tue Nov 16 17:23:53 CET 2004

[les_ander at]

#- but suppose I want to read from the stdin (piped) i don't 
#- know how to do this since
#- python -c "from sys import stdin; for x in stdin: print x"
#- gives a syntax error.
#- Anyone one know how to do this?

What are you trying to achieve? Are you sure this is the best way?

.	Facundo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list