Show Progress bar

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
#!/bin/bash
cd /mnt/cloud/frozenfiles
for index in $(ls -1)
do
echo $index:$(find $index -type f -mtime +273 | wc -l)
done >> /tmp/cloud_files_over_273_days.txt
This script removes files over 273 days old. This is a long running script, so I normally use screen so that it keeps running in the background.
Now I want to identify the progress and show the progress bar of this script. How can I append a progress bar to this? I have seen some sample progress bar scripts such as the one below, but I'm not sure how to append it.
dialog --gauge "Filling the tank" 20 60 0 < <(
for i in 1..100;do
printf "XXXn%dn%(%a %b %T)T progress: %dnXXXn" $i -1 $i
sleep .033
done
)
scripting progress-information
add a comment |Â
up vote
0
down vote
favorite
#!/bin/bash
cd /mnt/cloud/frozenfiles
for index in $(ls -1)
do
echo $index:$(find $index -type f -mtime +273 | wc -l)
done >> /tmp/cloud_files_over_273_days.txt
This script removes files over 273 days old. This is a long running script, so I normally use screen so that it keeps running in the background.
Now I want to identify the progress and show the progress bar of this script. How can I append a progress bar to this? I have seen some sample progress bar scripts such as the one below, but I'm not sure how to append it.
dialog --gauge "Filling the tank" 20 60 0 < <(
for i in 1..100;do
printf "XXXn%dn%(%a %b %T)T progress: %dnXXXn" $i -1 $i
sleep .033
done
)
scripting progress-information
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
#!/bin/bash
cd /mnt/cloud/frozenfiles
for index in $(ls -1)
do
echo $index:$(find $index -type f -mtime +273 | wc -l)
done >> /tmp/cloud_files_over_273_days.txt
This script removes files over 273 days old. This is a long running script, so I normally use screen so that it keeps running in the background.
Now I want to identify the progress and show the progress bar of this script. How can I append a progress bar to this? I have seen some sample progress bar scripts such as the one below, but I'm not sure how to append it.
dialog --gauge "Filling the tank" 20 60 0 < <(
for i in 1..100;do
printf "XXXn%dn%(%a %b %T)T progress: %dnXXXn" $i -1 $i
sleep .033
done
)
scripting progress-information
#!/bin/bash
cd /mnt/cloud/frozenfiles
for index in $(ls -1)
do
echo $index:$(find $index -type f -mtime +273 | wc -l)
done >> /tmp/cloud_files_over_273_days.txt
This script removes files over 273 days old. This is a long running script, so I normally use screen so that it keeps running in the background.
Now I want to identify the progress and show the progress bar of this script. How can I append a progress bar to this? I have seen some sample progress bar scripts such as the one below, but I'm not sure how to append it.
dialog --gauge "Filling the tank" 20 60 0 < <(
for i in 1..100;do
printf "XXXn%dn%(%a %b %T)T progress: %dnXXXn" $i -1 $i
sleep .033
done
)
scripting progress-information
scripting progress-information
edited 3 mins ago
JdeBP
30.4k463138
30.4k463138
asked 14 mins ago
user227863
144
144
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476592%2fshow-progress-bar%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password