s3cmd count lines with zcat and grep s3cmd count lines with zcat and grep shell shell

s3cmd count lines with zcat and grep


In case anyone is interested:

s3cmd ls --recursive s3://mys3.com/bucket1/ | awk '{print $4}' | grep '.gz' | xargs -I@ s3cmd get @ - | zgrep 'request' | wc -l