One line command line filter

John Wiegley jwiegley at gmail.com
Tue Sep 6 02:51:17 EDT 2011


>>>>> Jon Redgrave <jredgrave at capisco.com> writes:

> It seems unreasonably hard to write simple one-line unix command line
> filters in python:

> eg: ls | python -c "<something> print x.upper()"

[...]

> Is there a better solution - if not is this worth a PEP?

Have you looked at PyP (http://code.google.com/p/pyp)?

John



More information about the Python-list mailing list