Jump to content

Command Crate ¿about?

Display the size of HTML files, and the size of the same files compressed with gzip and brotli

for file in *.html; do printf "$file\t$(cat $file | wc -c | xargs printf "%'d\n")\t$(gzip -9c $file | wc -c | xargs printf "%'d\n")\t$(brotli -cZ $file | wc -c | xargs printf "%'d\n")\n"; done | tee

Prints the sizes of .html files, comparing uncompressed, gzipped, and brotli-compressed sizes in a tabular format.

file management [kb:153]