Created
November 9, 2022 15:32
-
-
Save luisadha/3085ad8821abe0beae6afc4208327064 to your computer and use it in GitHub Desktop.
rebuild script dialog_progressbar.sh from internet source
This file contains 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=$1 | |
wget --progress=dot "$URL" 2>&1 |\ | |
grep "%" |\ | |
sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download $(basename $URL) " 10 100 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment