- Generate the file:
$ awk 'BEGIN { for(c=0;c<10000000;c++) printf "<p>LOL</p>" }' > 100M.html
$ (for I in `seq 1 100`; do cat 100M.html; done) | pv | gzip -9 > 10G.boomgz
- Check it is indeed good:
| #!/usr/bin/perl -w | |
| # | |
| # This script was developed by Robin Barker (Robin.Barker@npl.co.uk), | |
| # from Larry Wall's original script eg/rename from the perl source. | |
| # | |
| # This script is free software; you can redistribute it and/or modify it | |
| # under the same terms as Perl itself. | |
| # | |
| # Larry(?)'s RCS header: | |
| # RCSfile: rename,v Revision: 4.1 Date: 92/08/07 17:20:30 |
| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
$ awk 'BEGIN { for(c=0;c<10000000;c++) printf "<p>LOL</p>" }' > 100M.html
$ (for I in `seq 1 100`; do cat 100M.html; done) | pv | gzip -9 > 10G.boomgz