One line command line filter

John Wiegley jwiegley at
Tue Sep 6 08:51:17 CEST 2011

>>>>> Jon Redgrave <jredgrave at> 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 (


More information about the Python-list mailing list