#!/bin/bash for i in 1 2 4 8 10 16 32 64 ; do echo "-----" ; echo $i ; for j in ` jot 10 ` ; do time pbzip2 -f -k -1 -p$i testfile.out ; done ; done