Monitor file system events and changes in real-time on macOS
Command-line utilities for the FSEvents API
fswatchfsevent_watch$ fswatch /path/to/directory$ fswatch -o /path/to/directory | xargs -n1 echo 'Files changed:'$ fswatch -x /path/to/dir1 /path/to/dir2