Wait for file system events on macOS files or directories
Wait for events on files or directories on macOS
kqwait
$ kqwait /path/to/file.txt
$ kqwait -c 'echo File changed' /path/to/directory
$ kqwait /path/to/file1 /path/to/file2 /path/to/directory