Statusbar for progress of bash script

I would like to know if there is a soulution for having a statusbar or something like this, to track the progress of my shell script ?

I appreciate any useful answers