command-line one-liners a la Perl?

kj no.email at please.post
Thu Jun 18 09:36:34 EDT 2009




I'm a recovering Perl addict, and I'm jonesin' badly for command-line
one-liners, like

  % perl -lne '@f=split "\t";print join "\t", at f[3,1] if $f[2]=~/frobozz/i' in.txt

How can I get my fix with Python?

kynn



More information about the Python-list mailing list