Re:Learn to use Awk with hundreds of examples
by feelin_googley on Wednesday October 25, 2017 @10:44PM
(#15555960)
[ Parent
| on HN ]
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