I have a local file and a remote file. If a remote file is newer (different) than local, I need to wget remote to overwrite local. If they're the same, I need to do something with a local file.What's the best/simplest way to compare modification dates of both files? I know wget has a timestamping option, but I don't know how to detect the situation, when the files are the same and wget does nothing.
Compare modification dates of local and remote file
files;wget;remote;timestamps;file comparison