home > web > markdownwithcat.html

Tuesday, June 8th, 2004

Markdown with cat and open

To concatenate head.html, tail.html files and auto-open result

Tack on another command (cat) that concatenates the text from the header, stdin, and footer. Then open the result in your default browser. E.g. (should be all on one line):

% perl Markdown.pl foo.text | perl SmartyPants.pl | 
  cat head.html - tail.html > foo.html; open foo.html

/web   〆   permalink