[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: for i in {1..100000...
From: |
pk |
Subject: |
Re: for i in {1..100000... |
Date: |
Thu, 12 Nov 2009 15:02:12 +0000 |
Antonio Macchi wrote:
> what's the rasonable limit in using this "compact" contruct, after which
> the for (( i=0; i<1000...; i++ )) became better?
You didn't even bother trying eh?
$ for i in {0..1000000000}; do echo $i>/dev/null; done
bash: xmalloc: ../../../bash/lib/sh/stringvec.c:40: cannot allocate
8000000016 bytes (0 bytes allocated)
$ for ((i=0;i<=1000000000;i++)); do echo $i>/dev/null; done