News for hackers. Stuff that matters.
Re:Learn GNU Awk with hundreds of examples and exercises by version_five on Monday August 28, 2023 @09:59AM (#37294077)
What does -w do? This works without it, no?

Edit, found it, "use whitespace as the delimiter"

https://www.unix.com/man-page/FreeBSD/1/cut/

For most cases like the OP you'd know the delimiter anyway so I don't think the absence is a big deal, and if not it would be easy to use tr or sed to make it consistent

Re:Learn GNU Awk with hundreds of examples and exercises by llimllib on Monday August 28, 2023 @03:13PM (#37299062)
the important thing is that it uses _consecutive_ whitespace as a the delimiter, so you'd have to use sed to collapse all the whitespace down to one tab.

At that point, awk is vastly simpler