Hacker News new | past | comments | ask | show | jobs | submit login

Nice.

I'm using a simple little combo of a shell script and alias to append a line of text to a text file in a known location. The script is just to prepend the line with a timestamp. Stupid and simple, but hey, it works for me.

My aliases:

  alias ttag='/cygdrive/c/Dropbox/tools/ttag/ttag.sh'
  alias ttagcat='\cat /cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt'
  alias ttago='open /cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt'
The shellscript:

  1   │ LOGFILE=/cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt
  2   │ TIMESTAMP_NICE=$(date +"%F %H.%M.%S - %s:")
  3   │ echo $TIMESTAMP_NICE "$@" >> $LOGFILE



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: