Skip to content

Instantly share code, notes, and snippets.

@rvbhute
Created February 1, 2019 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rvbhute/474e4276c8eae45f1a4779967c4e654f to your computer and use it in GitHub Desktop.
Save rvbhute/474e4276c8eae45f1a4779967c4e654f to your computer and use it in GitHub Desktop.
Bash script to dump task log to a file
#! /bin/sh
# time log capture
set -e
time_stamp=$(date '+%Y-%m-%d %H:%M')
details="$@"
echo "[$time_stamp] $details" >> ~/Desktop/today.txt
notify-send --hint=int:transient:1 "Added log for $time_stamp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment