Skip to content

Instantly share code, notes, and snippets.

@dmgerman
Created September 12, 2016 17:28
Show Gist options
  • Save dmgerman/6b050676e68eda60cc697554e1cd619d to your computer and use it in GitHub Desktop.
Save dmgerman/6b050676e68eda60cc697554e1cd619d to your computer and use it in GitHub Desktop.
#!/bin/bash
filename=$1
size=`stat -L "$filename" -c "%s"`
pv -s $size "$filename" | bzip2 -c > "$filename.bz2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment