Created
December 6, 2013 11:40
-
-
Save Gregsen/7822421 to your computer and use it in GitHub Desktop.
A nice progressbar for downloads using wget and Dialog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# heavily inspired by http://fitnr.com/showing-file-download-progress-using-wget.html | |
URL=<YOUR DOWNLOAD URL> | |
wget --progress=dot "$URL" 2>&1 |\ | |
grep "%" |\ | |
sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download Test" 10 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! I really like and appreciate what you did here- I use wget a lot and so I made a slight modification so that I can use the same script for different things-
Changed URL= to URL=$1
Changed "Download Test" to "Downloading $2"
Added -
Requires 2 parameters-
My initial test run was as so-