News for hackers. Stuff that matters.
Re:What does $0=$2 in awk do? by venil on Monday September 26, 2022 @03:16AM (#32980344)
Its actually part of the POSIX standard that redirections can be put anywhere in the command line, so one can do:

  <file.txt sed 's/some/filter' | other_cmd
on any standard compliantish shell :) (I use zsh, and I know it also works for bash and dash)
Re:What does $0=$2 in awk do? by jrm4 on Monday September 26, 2022 @09:28AM (#32982854)
Never knew this. Looking at it now. First impression, I can't tell if this is idiotic or genius :)