[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT] Scripting question: the length limit of a list?



Hi,

I would like to write a bash script like the following one:

for i in `some program that outputs a word list`
do
  echo $i
done

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.

-- 
Cheers,
Wei
http://www.acplex.com/people/wchen/



Reply to: