[CentOS] copy with bunzip2?

Tue Jan 8 02:58:39 UTC 2019
Frank Cox <theatre at sasktel.net>

I have several pdf files as .pdf.bz2, as seen here:

a/1.pdf.bz2
a/2.pdf.bz2
a/b/3.pdf.bz2
a/b/c/4.pdf.bz2

I want to copy everything in and under directory a to another computer, but I want the files to be decompressed on the destination machine:

a/1.pdf
a/2.pdf
a/b/3.pdf
a/b/c/4.pdf

I could just use rsync and run a bunch of bunzip2 commands on the destination after the copying is completed, but perhaps there's a better way that would decompress the files in transit instead?


-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com