I'm using wget to download a list of files from a URL, here is my command:
wget --user='username' --password='mypassword' -i url.txt
This downloads a list of .gz
files
What I need to do is:
- Before downloading, delete all files in directory
- After downloading, unzip all files and delete zipped ones
Is there a command or list of commands which might accomplish this which I can insert into a cronjob? I need to run this once a day.
Thanks