diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-08-07 13:50:23 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-08-07 13:50:23 -0400 |
| commit | 92037e3f089cee8b29f916f6e730af63f070eac3 (patch) | |
| tree | c55e99394bb9a39a7f859cbd99f174cb63a04a0a /.scripts | |
| parent | 04a5d284a11cd51439aec2d8d43c0d1343a63ac9 (diff) | |
| download | eibhear-92037e3f089cee8b29f916f6e730af63f070eac3.tar.gz eibhear-92037e3f089cee8b29f916f6e730af63f070eac3.tar.zst eibhear-92037e3f089cee8b29f916f6e730af63f070eac3.zip | |
datelog script added
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/datelog | 6 |
1 files changed, 6 insertions, 0 deletions
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" |
