commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
while [ $orig_size -gt $dest_size ] ; do
dest_size=$(stat -c %s $2)
pct=$((( 69 * $dest_size ) / $orig_size ))
echo -en "\r["
for j in `seq 1 $pct`; do
echo -n "="
echo -n ">"
for j in `seq $pct 68`; do
echo -n "."
echo -n "] "
echo -n $((( 100 * $pct ) / 69 ))
echo -n "%"
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.