From 3d91cb5bef0305ac05d3a172aecb0d60a5a2c500 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 6 Feb 2021 12:27:11 +0000 Subject: add more exercises, the default session file and better explanations. --- weighin | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 weighin (limited to 'weighin') diff --git a/weighin b/weighin new file mode 100755 index 0000000..9ab0360 --- /dev/null +++ b/weighin @@ -0,0 +1,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 <>weight +$today $w +EOF -- cgit v1.2.3