Show Progress bar

The name of the pictureThe name of the pictureThe name of the pictureClash 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
)









share|improve this question



























    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
    )









    share|improve this question

























      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
      )









      share|improve this question
















      #!/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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 mins ago









      JdeBP

      30.4k463138




      30.4k463138










      asked 14 mins ago









      user227863

      144




      144

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)