Bash Progress Bar
Ever wanted to show a progress bar on your bash scripts? I am talking specifically about the progress of file transfer or raw read scripts. It might be easier to explain with an example: I have a script that reads raw data from a CD or DVD ROM disk and pipes that data to md5sum or sha1sum to find if the data on the disk matches the published md5sum or sha1sum checksums published by the vendor. I download ISOs and verify them before I send them to my customers. I wanted to have the script show a progress bar so I started searching... Here is how I have implemented clpbar Installation instructions ( Fedora 10 x86_64 ) Download and install clpbar ( bar-1.10.9.tar.gz ) -- See references at the end of this script. tar xvfz bar-1.10.9.tar.gz cd bar-1.10.9 ./configure make su -c "make install" Usage example #!/bin/sh # # Start with verifying CDs # device="/dev/cdrom" # pass the type of checksum into the script. (md5sum|sha1sum) checksumtype=$1 #Find details of the devi...