]> us-delaporte.pagekite.me Git - minion.git/blob - bin/at
README update
[minion.git] / bin / at
1 #!/bin/bash
2 # at foo - searches ~/Journal/YYYY/MM-daily.md for @foo
3 # One file per month
4
5 year=`date +%Y`
6 topic='daily'
7 mkdir -p "$HOME/Journal/$year"
8 month=`date +%m`
9 fname="$HOME/Journal/$year/$month-$topic.md"
10
11 search="@$1"
12
13 cat $fname | grep $search