News for hackers. Stuff that matters.
Re:Relational shell programming by minimax on Thursday January 12, 2012 @01:40PM (#3457437)
A more idiomatic way to phrase the awk in the Selection example:

    awk -F ":" '{ if ( $3 != $4 ) print }' /etc/passwd
would be like this:

    awk -F ":" '$3 != $4 { print }' /etc/passwd
The first is obviously valid awk, but the second highlights awk's unique "pattern { action }" syntax.
Re:Relational shell programming by malkomalko on Thursday January 12, 2012 @02:28PM (#3457599)
I would argue the following below is a little nicer:

    awk -F':' '$3 != $4' /etc/passwd
Re:Relational shell programming by agumonkey on Friday January 13, 2012 @01:59AM (#3459499)

  `pattern action`
also idiomatic sed