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:
would be like this:
The first is obviously valid awk, but the second highlights awk's unique "pattern { action }" syntax.
[ Parent
| on HN ]
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