Need to install pv.
apt update && apt install pvCompile
./tar_with_progress.bash -c file.tar.{xz|gz|bz2} file1 file2 folder1 folder2Decompress
./tar_with_progress.bash -x file.tar.{xz|gz|bz2} {destination}Or you can use ./tar_with_progress.bash without any parameters to show the usage.