News for hackers. Stuff that matters.
Re:Understanding Awk by tyingq on Thursday September 30, 2021 @01:08PM (#28708615)
For some idea, a one liner to find the (last) longest username and length in /etc/passwd:

  $ awk -F: '{len=length($1);if(len>max){max=len;user=$1}}END{print user,max}' /etc/passwd
Re:Understanding Awk by flandish on Thursday September 30, 2021 @01:32PM (#28708874)
Thanks for that reply! It's good to work with an example.