#!/bin/bash # ########################################################## # B!n@ry wget made easy v1.0 # # # # For more information please visit: # # 1) B!n@ry-z0ne --> www.binary-zone.com # # 2) LinuxAC --> www.linuxac.org # # 3) Mail me @ Arabnix[at]gmail[dot]com # # # # /*\ Special thanks to all friends and brothers /*\ # ########################################################## echo "(1) Do you want to Download a single link?" echo "(2) Do you want to control for the speed?" echo "(3) Do you want to run the download in background?" echo "(4) Do you want to download a set/batch of URL's saved in a FILE?" echo "(5) For future and Advanced use such as:" echo "Quota, User Authentication, Proxy Use, Protocol Selection, Recursive Downloads" read CHOICE if [ $CHOICE -lt 4 ]; then echo "Please enter link to download" # Enter the Link required: read LINK case $CHOICE in (1) wget $LINK exit 0 ;; (2) echo "Please Enter Download Speed" read DOWNSPEED; wget -c --limit-rate=$DOWNSPEED"k" $LINK exit 1 ;; (3) wget -c -b $LINK exit 1 ;; *) echo "For Future Use Only, currently disabled" exit 1 ;; esac elif [ $CHOICE = 4 ]; then echo "Please Enter file containing URL's to download" read URLFILE wget -c -i $URLFILE elif [ $CHOICE = 5 ]; then echo "Sorry This is for future use, not available now !!!" exit 1 elif [ $CHOICE -gt 5 ]; then echo "Sorry No such Choice !!!" exit 1 fi echo "Mabrook ya 3am --> Download Complete :) " exit 0;