On Thu, Jul 10, 2008 at 2:42 PM, Ian Kelly <[EMAIL PROTECTED]> wrote:
> I will note that performing the same action 1,000 times takes at least
> 9 copies and 14 pastes; the same action 10,000 times takes at least 13
> copies and 17 pastes, which is not significantly more effort.

Or here's a cute way of doing it in Unix:

$ echo "This is an action to be performed 1000 times." > 1
$ cat 1 1 > 2
$ cat 2 2 > 4
$ cat 4 4 > 8
$ cat 8 8 > 16
$ cat 16 16 > 32
$ cat 32 32 > 64
$ cat 64 64 > 128
$ cat 128 128 > 256
$ cat 256 256 > 512
$ cat 512 256 128 64 32 8 > 1000
$ wc 1000
 1000  9000 46000 1000
$ echo "This is an action to be performed 10000 times." > 1
$ cat 1 1 > 2
$ cat 2 2 > 4
$ cat 4 4 > 8
$ cat 8 8 > 16
$ cat 16 16 > 32
$ cat 32 32 > 64
$ cat 64 64 > 128
$ cat 128 128 > 256
$ cat 256 256 > 512
$ cat 512 512 > 1024
$ cat 1024 1024 > 2048
$ cat 2048 2048 > 4096
$ cat 4096 4096 > 8192
$ cat 8192 1024 512 256 16 > 10000
$ wc 10000
 10000  90000 470000 10000

-root

Reply via email to