wget's timestamping functionality ensures it only downloads files that have changed. I'm looking for a linux command-line tool that will recursively compare a directories contents with a saved version (from the last time it ran), and execute an arbitary shell command on any new or updated files. Basically:
run-on-updated --directory /path/to/my/dir --last-results ~/.lastrun --exec "echo {}"
I could even imagine this as an extension of the 'find' command. Does such a tool exist?
rsync -v --dry-run /path/to/my/dir ~/.lastrun