Skip to content

Instantly share code, notes, and snippets.

@luisadha
Created November 9, 2022 15:32
Show Gist options
  • Save luisadha/3085ad8821abe0beae6afc4208327064 to your computer and use it in GitHub Desktop.
Save luisadha/3085ad8821abe0beae6afc4208327064 to your computer and use it in GitHub Desktop.
rebuild script dialog_progressbar.sh from internet source
#!/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