I am looking for a simple bash solution to perform an action when a file is updated after a command like wget --timestamp https://example.com/my.file
I observed that wget returns 0 on both case, when the files is already latest version and also when it did download a newer one.
What's the easiest way to implement this in bash?