by jcw · 15y ago · 0 comments
jr () {
echo "---"
echo "\n##"`date +" %a %D %l:%M%P"` >> ~/journal.txt
cat >> ~/journal.txt
}
It usually emits 72 dashes, so that I can stay within that margin (manually, heh). Edited to not break HN. The '##' is because I habitually markdown format everything. #!/bin/bash
echo "%%" >> ~/.journal
date +"%a %Y-%m-%d :: %X" >> ~/.journal
cat - >> ~/.journalEdit: you also don't have file timestamps to show when an entry was actually written, in case that matters to you.