#!/bin/bash # strip my docstring style notes, don't touch orignal cat lbh.txt | sed '/^\"\"\"/,/^\"\"\"/d;' > tmp.txt # process with pandoc pandoc -o lbh.epub tmp.txt --toc --css=epub.css ~/./bin/kindlegen lbh.epub rm tmp.txt