#!/bin/bash
#121230 sfs
f="$@"
f=ftp://ftp.yandex.ru/ubuntu/ls-lR.gz

wget  --connect-timeout=3 -t 2 "$f" 2>&1 |tee /dev/stderr |sed -u "s/^ *[0-9]*K[ .]*\([0-9]*%\).*/\1/" | \
yad --image=save48 --no-buttons --progress-text="Загрузка $f" \
    --progress --auto-close --auto-kill  --undecorated --center 2> /dev/null
#yad --image=save48-alt --no-buttons --progress-text="Загрузка $f" \
