#!/bin/sh # creates 2GB of highly-repeated ASCII text, then compresses it with # MSZIP and LZX in the same cabinet # largest possible file is 65535 blocks of 32768 byte which is nearly 2GB perl -e '$b="Fabulous secret powers were revealed to me the day I held aloft\n" x 512; for (1..65535) {print $b;}' >2gb.txt cat >directives.txt < 20kB wine makecab.exe /D CompressionType=LZX /D CompressionMemory=21 large-files.cab mv large-files.ca_ large-files-cab.cab