Re: [OT] Scripting question: the length limit of a list?
On 11/01/07 15:07, Wei Chen wrote:
> I would like to write a bash script like the following one:
> for i in `some program that outputs a word list`
> echo $i
> where the word list can be very very long. I wonder what is the upper bound
> limit of the length of word lists in "for" loop of a bash script, or
> does it only
> depend on the hardware (say, RAM)? Thank you in advance.
I *think* that bash has a 128KB buffer limit.
Ron Johnson, Jr.
Jefferson LA USA
Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!