In this tutorial, we’ll walk through creating and using a Bash script to download files from specified URLs. The script is capable of downloading various types of files such as videos, audios, images, text files, and more.
Step 1: Download Bash Script
Use your terminal
git clone https://github.com/samanweb/bloder.git
cd bloder
Step 2: Make the Script Executable
Make the script executable using the chmod
command:
chmod +x download_files.sh
Step 3: Run the Script
Execute the script by running the following command:
./download_files.sh
Step 4: Check Downloaded Files
After running the script, it will download the specified files from the provided URLs and save them in the current directory with corresponding names. The script will also print status messages indicating successful downloads or any errors encountered.
You can verify the downloaded files by listing the contents of the directory:
ls
You should see the downloaded files listed in the output.