Hacker News new | ask | show | jobs
by billswift 5636 days ago
Mine is similar. My journal file is the hidden file ~/.journal and my script is in my home bin directory. It sets up a cat from STDIN, so I can just jot a few things down and ^D. I wanted something that would be as easy to use and non-intrusive as possible. And I used the %% on a line by themselves as the divider, as I also do in my Quotes_Aphorisms file, so scripts for searching and manipulating the fortune databases will also work on them.

  #!/bin/bash
  echo "%%" >> ~/.journal
  date +"%a %Y-%m-%d :: %X" >> ~/.journal
  cat - >> ~/.journal