Basic file watcher bash script that checks for file changes every 2 seconds and executes the supplied command on change.
./watch-file [file to watch] [command to execute on change]
eg. ./watch-file README.md 'cat README.md'
| Name | Name | Last commit date | ||
|---|---|---|---|---|