fswatch written by Enrico Maria Crisostomo prints the paths of changed files in a given directory, which you can “pipe” to another program.
In the example below,
genblog if any file in the current directory has been changed (except for files in directories
fswatch --one-per-batch --recursive --exclude="output" --exclude=".git" . | xargs -n1 sh -c "genblog"