Skip to content

Instantly share code, notes, and snippets.

@madx
Last active December 11, 2015 10:09
Show Gist options
  • Save madx/4585122 to your computer and use it in GitHub Desktop.
Save madx/4585122 to your computer and use it in GitHub Desktop.
Simple file event watching using inotifywait
inotifywait -qm -e CLOSE_WRITE file.haml | while read ev; do
haml file.haml file.html
done
# use -r on inotifywait to watch directories recursively
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment