]> us-delaporte.pagekite.me Git - minion.git/blob - bin/mp
Document spelling and HTML output
[minion.git] / bin / mp
1 #!/usr/bin/bash
2 year=`date +%Y`
3 files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md")
4
5 counter=0
6 for file in $files; do
7 # echo $file
8 mdtohtml $file > $file.html
9 firefox $file.html
10 counter=$((counter + 1))
11 if [ $counter -gt 4 ]; then
12 echo "Aborting after 4 files."
13 echo "The following files would have been processed..."
14 echo $files
15 exit 1
16 fi
17 done