Python from the command line (was: Choosing Perl/Python for my particular niche)

Cameron Laird claird at lairds.com
Thu Apr 1 00:03:15 EST 2004


In article <4069F1FD.601C9079 at doe.carleton.ca>,
Fred Ma  <fma at doe.carleton.ca> wrote:
			.
			.
			.
>Perl/sed.  About invoking Perl as part of a simple command in a
>pipeline, I mean that one doesn't even have to write a script for it,
>similar to sed
>
>	Command1 | sed -e Expression1 -e Expression2 ... | Command_N
>
>This might also be possible in Python, in which case so much the better. 
>I'll find out (or someone might answer in a follow-up post).  Thanks
			.
			.
			.
  # python -c "print 3 + 5"
  8
-- 

Cameron Laird <claird at phaseit.net>
Business:  http://www.Phaseit.net



More information about the Python-list mailing list