Simple Bash Wget Downloader (BWD)
Usage of the Bash Wget Downloader :
./download.sh -d "dir destination" \
[-f "mylinks.txt" [links file name with path if necessary]] \
[-a (ask for confirmation before download, by default : no ask)] \
[-k (keep list, by default : the list will be delete)] \
[-l (limit speed to 15MB/s, by default : unlimited)]
Suppose I have links to MP4 files I want to download in my clipboard :
https://_URL_/video1.mp4
https://_URL_/video2.mp4
https://_URL_/video3.mp4
https://_URL_/video4.mp4
Simply run the script with minimal arguments:
./download.sh -d /data/download/
- 1 / Here my destination is
/data/download
- 2 / The script will create a temporary file for the list, using /tmp/$RANDOM
- 3 / Insert your links in the Vim editor
- 4 / The script will retrieve the links and delete the temporary file list
- 5 / Downloads will commence sequentially with a 2-second interval between each download.
Suppose I have a list named mylinks.txt
:
https://_URL_/video1.mp4
https://_URL_/video2.mp4
https://_URL_/video3.mp4
https://_URL_/video4.mp4
Launch the script with the list file as an argument:
# I want to keep 'mylinks.txt' :
./download.sh -d /data/download/ -f mylinks.txt -k
# else, simply :
./download.sh -d /data/download/ -f mylinks.txt
- 1 / Here my destination is
/data/download
- 2 / The script will use mylinks.txt to retrieve links; change the path if necessary, here the file is in the current path
- 3 / Downloads will commence sequentially with a 2-second interval between each download.
N.B: Links and the number of links will be displayed before downloading to avoid losing links ;)