I am writing a shell script that periodically downloads an archive off the internet and processes it.
I use wget -N $URL so that the file gets downloaded only if a newer version exists. How can I know if a file was actually downloaded so I can avoid unnecessary processing?
You can try the following