Kinda unwieldy, but on win you could use (wrapped):
perl -e"$f=-s($ARGV[0]); $n=1+int($ARGV[1]*1024**3)/$f; system 'copy ' . join'+', $ARGV[0] x $n . ' huge.txt'" sample.txt 1
There's probably a similar formulation for *nix.
In reply to Re: Script to create huge sample files
by BrowserUk
in thread Script to create huge sample files
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |