News for hackers. Stuff that matters.
Re:What does $0=$2 in awk do? by jrm4 on Monday September 26, 2022 @09:27AM (#32982838)
As someone who teaches this stuff, I don't think so? Down the line you can do memorization of quicker ways, but I think "memorization" and "intuition" are opposites here.

As in, starting the pipeline with "cat" every time makes intuitive sense more than taking the time to figure out which command to start with?

Re:What does $0=$2 in awk do? by nmz on Tuesday September 27, 2022 @02:39PM (#32999304)
Sure, is egrep a|egrep b| egrep c more intuitive than awk '/a/ && /b/ && /c/'. sure, until you need to have more control over the pipe, in which case, you already forked to awk. so why not go all the way and keep the operation as an awk expression? The great thing about it is, the more you use a tool, the faster you are at using it.