3 ms·
I'm pretty sure he's talking about simple command line work. You seem to be missing the point. Compare: | awk '{print $2}' | ... | python -c 'import sys
by BrandonM 16y ago
I'm pretty sure he's talking about simple command line work. You seem to be missing the point. Compare:
| awk '{print $2}' | ...
| python -c 'import sys
for line in sys.stdin:
try:
print line.split()[1]
except IndexError:
print' | ...
- microtherion 16y agoYeah, but try | perl -nae 'print $F[1], "\n"' | ruby -nae 'puts $F[1]' Your local python oil vendor may have a one liner for that language as well.
- gregable 16y agoI still posit that awk '{print $1}' is simpler