For parallelizing gzip compression:
parallel gzip ::: myfile_*
does the job but how to pass gzip options such as -r
or -9
I tried parallel gzip -r -9 ::: myfile_*
and parallel gzip ::: 9 r myfile_*
but it doesn't work.
when I tried parallel "gzip -9 -r" ::: myfile_*
I get this error message :
gzip: compressed data not written to a terminal. Use -f to force compression
Also the -r
switch for recursively adding directories is not working.
....
Similarly for other commands: how to pass the options while using parallel
?