shithub: rcfitness

ref: 3d91cb5bef0305ac05d3a172aecb0d60a5a2c500
dir: /weighin/

View raw version
#!/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