How to process only modified files in a folder without using inotifywait in Linux shell script?

So I have a large number of files and folders inside a main folder.

Every time a file is edited in the main folder I want to GPG encrypt the file to prepare it for upload.

But I don't want to use inotifywait. I'd rather use something like diff but not sure what the right tool is and how to use it in a Shell script.

Anyone knows?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.