diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-09 12:35:11 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-09 12:35:11 +1300 |
commit | 8596a223d1c99a71c2345a11ade542795aa18cc9 (patch) | |
tree | 0ca376797e9c4e79242c33c67aab24adfcbe394b /bin | |
parent | Break long line in loc(1df) (diff) | |
download | dotfiles-8596a223d1c99a71c2345a11ade542795aa18cc9.tar.gz dotfiles-8596a223d1c99a71c2345a11ade542795aa18cc9.zip |
Add clog(1df)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/clog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/clog b/bin/clog new file mode 100755 index 00000000..d52ab4c5 --- /dev/null +++ b/bin/clog @@ -0,0 +1,7 @@ +#!/bin/sh +# Record a timestamped message to a logfile, defaulting to ~/.clog +{ + date + cat - + printf '%s\n' -- +} >>"${CLOG:-"$HOME"/.clog}" |