One line command line filter

Jon Redgrave jredgrave at capisco.com
Mon Sep 5 17:32:08 EDT 2011


> > Am I missing something obvious?
>
> ls | python -c "for line in __import__('sys').stdin: print (line.upper())"

Ah, so I am missing something - it is possible - but 'obvious'?
Do people think it should be more accessible



More information about the Python-list mailing list