M
M
Mouvdy2015-03-16 15:29:11
Wget
Mouvdy, 2015-03-16 15:29:11

How to check and download a file with Wget by the condition "created less than 5 days ago"?

Greetings,
There is a need to download a file from a remote server using wget, provided that it is not older than, for example, 5 days.
I used to do
wget site.com/file.zip and then find . -type f -mtime +5 -exec rm {} \;
It would be nice to do a check before downloading the file, because sometimes it weighs a dozen gigs.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question