1 2 3 4
#!/bin/sh filename="$1" shift tar cvf - "$filename" | pv -s $(du -sb "$filename" | cut -f1) | gzip $@ > "${1%/}.tar.gz"