[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Surprisingly relevant?

Surprisingly relevant?

Posted May 20, 2020 12:00 UTC (Wed) by neilbrown (subscriber, #359)
In reply to: Surprisingly relevant? by NYKevin
Parent article: The state of the AWK

> What does bother me is when people write awk "{ print $1 }" instead of cut -f1. I find the latter more readable.

I'm a proud user of 'awk "{print $1}"' - maybe I don't care about readability, only write-ability.
A small extension to that (e.g., ignore lines starting '#') is easy within the same tool. A small extension to "cut -f1" requires a different tool.
Awk seems to be to be a good answer to the requirement "Simple things should be simple, complex things should be possible".


to post comments

Surprisingly relevant?

Posted May 23, 2020 12:18 UTC (Sat) by unixbhaskar (guest, #44758) [Link]

Agreed. And it echoed the essence of UNIX, do one thing and do it well. It's a damn good tool to know. :)


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds