Skip to content

Instantly share code, notes, and snippets.

@iperdomo
Last active August 29, 2015 13:59
Show Gist options
  • Save iperdomo/10989926 to your computer and use it in GitHub Desktop.
Save iperdomo/10989926 to your computer and use it in GitHub Desktop.
Watches a markdown file and produces html
#!/bin/sh
set -e
inotifywait -m -e modify "$1" | while read line; do markdown "$1" > "$2"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment