aboutsummaryrefslogtreecommitdiff
path: root/weighin
diff options
context:
space:
mode:
Diffstat (limited to 'weighin')
-rwxr-xr-xweighin20
1 files changed, 20 insertions, 0 deletions
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 <<EOF >>weight
+$today $w
+EOF