Fast file download with cURL
If you want to download a large file using multiple connections at once, this bash script might be a good option.
We are currently on vacation in Croatia and I forgot to update our carsโ navigation system accordingly. Therefore, I quickly wanted to download an appropriate map bundle from https://updateportal.skoda-auto.com for our Amundsen system in our Skoda Fabia NJ5. Downloading seemed pretty slow with min. one day to finish due to server-side limitations. And because I had to go to the campgroundsโ reception for a descent Wifi hotspot, I needed a faster solution.
After unsuccessfully trying out some dubious browser extensions, I finally decided for this bash script. It downloads multiple file slices at once, whereby their number can be configured by the user. After 15 min the download was finished.
- Download script
curl https://github.com/WanghongLin/miscellaneous/blob/master/tools/mcurl.sh >mcurl.sh && chmod 744 mcurl.sh
- Apply script (Number of slices is set by argument
-s
)./mcurl.sh -s 500 https://infotainment-cdn.skoda-auto.com/base/maps/STD2_2110_EU_DL1_202345.zip
- Done. Slices are merged automatically.
Leave a comment