cm0002@lemmy.world to Linux@programming.dev · 4 days agoGNU awk idioms explainedlearnbyexample.github.ioexternal-linkmessage-square1fedilinkarrow-up11arrow-down10cross-posted to: linux@lemmy.ml
arrow-up11arrow-down1external-linkGNU awk idioms explainedlearnbyexample.github.iocm0002@lemmy.world to Linux@programming.dev · 4 days agomessage-square1fedilinkcross-posted to: linux@lemmy.ml
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up0·4 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.