This is the progress bar function inplemented by Korn shell script