Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash script to dump task log to a file
#! /bin/sh
# time log capture
set -e
time_stamp=$(date '+%Y-%m-%d %H:%M')
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