I know we just saw watchfile.sh the other day, but I can’t account for the whims of alphabetical order.
tsar11 sent a link three or four months ago to a reddit post about wendy, which monitors files (or directories, for that matter) for changes, and then executes a command as a response.
As you see there, it could be something as simple as a message on screen, or it could be as complex as an order to recompile a program.
wendy can discriminate between file modification, file creation and file deletion, which is handy. If I had told it to spawn a warning only when a file was created, that gif probably would have been shorter. 🙄
wendy also knows enough to keep quiet when told, or to poll at distinct intervals. All nice touches.
wendy’s home page shows edits within the past few months, so if you find there’s a feature it lacks (for one, I’d like to see the option to discriminate actions based on either modification, deletion or creation), the author is probably listening.
In the mean time, your homework will be to daisy-chain all four of these together and see what kind of ruckus erupts as a result. 😈