#!/bin/env groovy @Grab('org.apache.commons:commons-compress:1.+') import org.apache.commons.compress.compressors.gzip.* import org.apache.commons.compress.archivers.tar.* import org.apache.commons.compress.utils.* new BufferedInputStream(new GzipCompressorInputStream(new FileInputStream('./archive1.tar.gz'))).with { gzipInputStream -> new TarArchiveInputStream(gzipInputStream, 64 * 1024).with { t