-
-
Save dijit/01f13336c7e1462844b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Parallel Compression based on your number of cores. | |
function xzv() { | |
THREADS=`grep processor /proc/cpuinfo | wc -l`; | |
for file in $*; do | |
pv -s `stat -c%s $file` < $file | pxz -q -T $THREADS > $file.xz ; | |
done; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment