News for hackers. Stuff that matters.
Re:Understanding Awk by likpok on Thursday September 30, 2021 @02:22PM (#28709401)
Consider the input a b

Awk will treat it as having two columns (by default), while cut will treat each space as it’s own column.

Awk is also a little nicer for whitespace; cut makes specifying the delimiter (with say “-d\ “) a little more vexing.

There are no comments on this comment yet.