Creating simple progress bar in shell / Python

Progressbar indicates if certain tasks are getting executed and when they completed.

In bash oneliner:

printf “Starting [“;for num in $(seq 50);do printf “#”;sleep 0.5;done;printf “] Successfull”

In Python:

sys.stdout.write(“Starting Operation[“)
for d in range(60):


sys.stdout.write(“]Stoping Operation”)

These can be modified to be used anywhere in codes toprint progressbar.


About Divyashree - The GNULINUX Guy

I am a Linux and Opensource enthusiast. I started working on Linux early in 2007 while I was doing my Masters in Computer Science and passed out in 2010. Currently working as a DevOps Developer in in Public/Private cloud domain. my @github : my @nagiosexchange : my @linkedin :☁-a9415615
This entry was posted in HOWTO, Programming, SCRIPTING, TIPS & T RICS, TUTORIALS, Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s