what's the largest shell script you've ever written?

I've just written a test harness using ksh.

One of scripts weighed in at 1206 lines.

I came across Eric Raymonds 'Art of Unix programming' on line and he advises against excessively large scripts.

I am very interested to hear people's opinions on this and any experiences they have had.

The public version of swordfish is a bit over 2500 lines. My private version has multiple RNG's and statistical tools to evaluate their performance. It's over 4000 lines. When I write a very large script it will be a collection of modules and each module will be small enough to understand easily.

swordfish a password generator

It was very interesting for me to look at your code Perderabo. I also took a modular approach. Thank you