progress bar

hi all,
in shell script (ksh), how do i write a progress bar ?? i have a script which searches files and while its searching i am currently printing out "." and if it finds what its searching for the script prints out the name of the file e.g

..................
firstFile.txt
..................
..................
secondFile.txt
....... etc

the problem with this is that there are so many files the script needs to search through that the output goes beyond a page and its hard to read

how do i keep a progress bar on the side while the file names are printed ??

thanks in advance.

forgot to mention, the script prints out the "." as it moves from one file to the next.

answered my own question:

basically the 'tput' command can be used to control the position of the curson and 'print' command to print on the same line.

easy :slight_smile: