[lug] Bash While Loop Error
Tkil
tkil at scrye.com
Thu Nov 30 18:58:35 MST 2000
>>>>> "SCDM" == SoloCDM <deedsmis at aculink.net> writes:
SCDM> The script is only indicative of an elaborate script I have
SCDM> created, which requires nested loops. It is mandatory that the
SCDM> script have loops to process more elaborate schemes.
uhg. use a real programming language, then. i'd personally steer
clear of bash for anything more complex than a simple "for foo in"
type construct. but that's just me.
note that by "real programming language" i'm talking about anything
that has sane scoping, quoting, and control rules -- e.g. perl,
python, and friends. i'd personally suggest sticking with "scripting"
languages, but if you really want to abuse yourself, you could do
stuff like this in C, C++, or even Java. but ...
finally, instead of nasty nested loops (especially if you are just
selecting certain things), try using temp files; they might answer
some of your needs. i'd personally suggest going with a scripting
language for this task, from what little you've said of it.
More information about the LUG
mailing list