1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/rc rfork ne today=`{date -i | awk -F'-' '{print $2"/"$3}'} w=() flagfmt='' args='weight' fn usage { aux/usage exit usage } if(! ifs=() eval `{aux/getflags $*} || ! ~ $#* 1) usage w=$1 cat <<EOF >>weight $today $w EOF