View Single Post
Posts: 299 | Thanked: 557 times | Joined on Aug 2012
#4587
Originally Posted by Schturman View Post
Ohhh.. You are right, sorry
It work but it show only bar...
Can we somehow combine it with your previous script where we can see the percentage status too ?:
Code:
download()
{
    local url=$1
    echo -n "    "
    wget --progress=dot $url 2>&1 | /opt/N9QTweak/SYS/bin/grep --line-buffered "%" | \
        /opt/N9QTweak/SYS/bin/sed -u -e "s,\.,,g" | awk '{printf("\b\b\b\b%4s", $2)}'
    echo -ne "\b\b\b\b"
    echo " DONE"
}

file="http://dl.dropbox.com/u/17706605/N9_QuickTweak_en_v9.4.pdf"
echo -n "Downloading status:"
download "$file"
So you want
Code:
[=====        ]
50%
or

Code:
 [=====        ] 50%

this?