Create a new download.sh file using nano or any other editor such as VIM
- nano download.sh
Then modify these lines and then add them in the download.sh file using nano editor.
declare -A urls=(
["https://Your_Download_Link.com/File__Name1"
]="File__Name1"
["https://Your_Download_Link.com/File__Name2"
]="File__Name2"
["https://Your_Download_Link.com/File__Name3"
]="File__Name3"
)
for url in "${!urls[@]}"; do
wget "$url" -O "${urls[$url]}"
done
Then press Ctrl+S to save file and Ctrl+X to exit the .download.sh file
Then Enable the permission to run download.sh file on ubuntu
- sudo chmod -X download.sh
Now you can execute the file and the downloading will commence.
- ./download.sh