Example of watching file and executing command on modify event
#!/bin/bash while inotifywait -e modify application/views/html/**/*; do make templates; done