From 92037e3f089cee8b29f916f6e730af63f070eac3 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 7 Aug 2018 13:50:23 -0400 Subject: [PATCH] datelog script added --- .scripts/datelog | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .scripts/datelog diff --git a/.scripts/datelog b/.scripts/datelog new file mode 100755 index 0000000..af63604 --- /dev/null +++ b/.scripts/datelog @@ -0,0 +1,6 @@ +#!/bin/sh +# I have a cronjob run this every minute to log time spend on the computer in +# `~/.time` for each day. Gives estimate of daily NEEThood. + +date=`date '+%y-%m-%d'` +echo $((`cat ~/.time/"$date"`+1)) > ~/.time/"$date"