Skip to content
Advertisement

How do you use wget to download most up to date file on a site?

Hello I am trying to use wget to download the most update to day McAfee patch and I am having issues singling out the .tar file. This is what I have:

JavaScript

However when I run the above command it gives me:

JavaScript

When I need it to just be the most recent.tar file in between the <a> </a> which in this case would be avvdat-8066.tar. Can someone please help me out with greping the correct .tar I am not too good with regex or sed.

Advertisement

Answer

Try this,

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement