3 point if/else statement
In bash, the only if/else structure I can find is
if [ ] ; then else fi What if I have three things I want to check, such as: if [ ] ; then elsif [ ] ; then else fi Does this structure exist or do I just need to do some large nested if/else loop |
Found it:
elif |
Try the case statement:
http://www.softpanorama.org/Scriptin...tatement.shtml Code:
case expression in |
All times are GMT -5. The time now is 08:37 AM. |