Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 633545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:11:53+00:00 2026-05-13T20:11:53+00:00

Firstly, Thanks everyone for all your help. I can see the successful completion of

  • 0

Firstly, Thanks everyone for all your help. I can see the successful completion of my project in couple of days..

I need to know how to put a status bar in Shell Script, something like this.

No_of_files=55
index=0

while [ $index -lt $No_of_files ]
do
     echo -en "$index of $No_of_Files Completed"
     index=$((index + 1))
done

Expected Result :
1 of 55 Completed
2 of 55 Completed

Every iteration, index should be replaced but not other characters.

Thanks
Kiran

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:11:54+00:00Added an answer on May 13, 2026 at 8:11 pm

    You can print \r to go back to the beginning of the line, so that you can overwrite the last thing printed with a new message:

    for (( I=0 ; I < 10 ; I++ )); do
       echo -en "\r$I of 10 completed"
       sleep 1
    done
    echo
    

    This looks like the just the $I number would be changing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, thanks for your help. Here's my situation: I'm trying to edit the code
Firstly just a big Thanks to everyone on this site, I am using it
Firstly Id like to say thanks to everyone who has helped me this week
Firstly thanks in advance for your time looking at this question. I'm trying to
Firstly, I want to thank you guys for all the help you've provided me
Firstly, is there a command for getting help and parameters for each sos command
Firstly, I know this [type of] question is frequently asked, so let me preface
Firstly I would just like to thank everyone for reading this and answering my
Firstly, thanks in advance. I am trying to make a drill down style report
Firstly, can anyone explain how a state object can be shared when the state

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.