From 628c8d8eee29591f9fe96d2d734852962ce408e6 Mon Sep 17 00:00:00 2001 From: St33v Date: Tue, 9 Nov 2021 11:12:13 +1100 Subject: well it works, but it could be augmented later, Ron --- super.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'super.sh') diff --git a/super.sh b/super.sh index b8cfb29..c76aeaa 100755 --- a/super.sh +++ b/super.sh @@ -5,4 +5,17 @@ theDate=$(\date -I) # ISO 8601, natch -:wq +# Where to store the log file +logFile=~/box/leger/etc/superLog.txt + + +# to log a value, the user must include it as an argument +if [ -z $1 ] + then + echo "Usage: provide an argument for super.sh to append to the log" + exit 1 +fi + +echo $theDate $1 >> $logFile + + -- cgit v1.3