Ani Menon Manish Manish 23 1 1 silver badge 8 8 bronze badges. Honestly, who has upvoted this awful question. There is no specific problem, they are just asking someone to write a script for them — Add a comment.
Active Oldest Votes. Also provide the command to run. Ani Menon Ani Menon I understood scheduling it on cron, I need the complete bash script. So that I can run it in my terminal also for previous dates also. If you want it for the previous dates then just write a for loop to put appropriate date and get the files with wget or curl — Ani Menon. You can use this: wget www. Jahid Jahid Can you please provide me the complete code, from start as well as saving of downloaded file.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE.
Featured on Meta. Now live: A fully responsive profile. Note : If extracting files to particular directory that requires root permissions, use the sudo command to run tar. Alternatively, you can use the following command, here, the archive file will be downloaded on your system before you can extract it.
Considering the previous example, this is how you can use cURL to download and unpack archives in the current working directory. In this short but useful guide, we showed you how to download and extract archive files in one single command. If you have any queries, use the comment section below to reach us. Ubuntu Download File From Url In this article, we will show you how to download tar archives using two well known command line downloaders — wget or cURL and extract them with one single command.
To extract compressed archive file to a specific directory, use the following command. To extract file to different directory while downloading, use the following command.
0コメント