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

Batista, Facundo FBatista at uniFON.com.ar
Tue Nov 16 17:23:53 CET 2004


[les_ander at yahoo.com]

#- 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: <http://mail.python.org/pipermail/python-list/attachments/20041116/54440890/attachment.html>


More information about the Python-list mailing list