aboutsummaryrefslogtreecommitdiff
path: root/weighin
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-02-06 12:27:11 +0000
committerrodri <rgl@antares-labs.eu>2021-02-06 12:27:11 +0000
commit3d91cb5bef0305ac05d3a172aecb0d60a5a2c500 (patch)
treef32de32da34a881cbeb19279f18a1e34389244b6 /weighin
parent800267bfade7f03104e5839cf27be47ca2a7d966 (diff)
downloadrcfitness-3d91cb5bef0305ac05d3a172aecb0d60a5a2c500.tar.gz
rcfitness-3d91cb5bef0305ac05d3a172aecb0d60a5a2c500.tar.bz2
rcfitness-3d91cb5bef0305ac05d3a172aecb0d60a5a2c500.zip
add more exercises, the default session file and better explanations.
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