i have a bash script i would like modify to support input from shell atm i have to type the link after i have run the script
wiak@test:~$ scripts/lget.sh gimme cookie! https://raw.github.com/nwgat/scripts/master/lget.sh 80 bytes transferred done. wiak@test:~$
like this input from shell
the bash script
echo "gimme cookie!" read down lftp -e 'pget -n 5 '$down' && exit' echo "done."
its also here on github if someone wants to fork it https://github.com/nwgat/scripts/blob/master/lget.sh
software needed to make it work: lftp http://lftp.yar.ru/