cm0002@lemmy.world to Linux · 22 days agoGNU awk idioms explainedlearnbyexample.github.ioexternal-linkmessage-square1fedilinkarrow-up116arrow-down10cross-posted to: [email protected]
arrow-up116arrow-down1external-linkGNU awk idioms explainedlearnbyexample.github.iocm0002@lemmy.world to Linux · 22 days agomessage-square1fedilinkcross-posted to: [email protected]
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up3·22 days agoawk is in a strange position between simple grep commands and full-featured Python programs. It’s powerful but too domain-specific, and if you learned how to write multiline sed scripts you don’t need awk anymore. And yes, you can do python -e “…” for (really long) Python one-liners.
awk is in a strange position between simple grep commands and full-featured Python programs. It’s powerful but too domain-specific, and if you learned how to write multiline sed scripts you don’t need awk anymore.
And yes, you can do
python -e “…”
for (really long) Python one-liners.