#!/bin/bash # Total size of all WARCs in the current directory (or subdirectories) find -name '*.warc.gz' -printf '%s\n' | "$(cd "$(dirname "$0")"; pwd -P)/format-size"