[olug] Bash script

ERIC MAHLAKO lericom at yahoo.com
Thu Oct 24 13:45:20 UTC 2002


Hi

Can anyone help me with the following problem:
I have two conditions which I want to check
simultaneously in order to do some other things in
bash script, i.e I want to do something similar to the
following:
condition1 = "1 2 3 4 5 6"
condition2 = "9 8 7 6 5 0"

for cnd1 in condition1 && for cnd2 in condition2
do 
....
....
....
done
but it can compile,it gives me a syntax error. I want
to know if it is possible to combine two for loops
with an "AND" or "OR" in basch script. If yes let me
know.

Thanks


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



More information about the OLUG mailing list