News for hackers. Stuff that matters.
Re:Learn to use Awk with hundreds of examples by feelin_googley on Wednesday October 25, 2017 @10:44PM (#15555960)

  #!/bin/sh
  x=0;while true;do read a;
  test ${#a} -gt 0||exec echo $x
  a=${a#*:\*:};n=${a%%:*};
  test $n -le 240||x=$((x+n));
  done < /etc/passwd
Re:Learn to use Awk with hundreds of examples by feelin_googley on Thursday October 26, 2017 @11:10AM (#15559516)

  #!/bin/sh
  IFS=:;x=0;while true;do read a b c d;
  test ${#a} -gt 0||exec echo $x
  test $c -lt 240||x=$((x+c));
  done < /etc/passwd