Guard is a command line tool that easily handle events on files modifications.
WWW: https://github.com/guard/guard