marcus-g
5/5/2017 - 11:48 PM

Bash If, then, elif, else, fi conditional statement syntax From http://www.thegeekstuff.com/2010/06/bash-if-statement-examples

Bash If, then, elif, else, fi conditional statement syntax

From http://www.thegeekstuff.com/2010/06/bash-if-statement-examples

If [ conditional expression1 ]
then
	statement1
	statement2
	etc
elif [ conditional expression2 ]
then
	statement3
	statement4
	etc
else
	statement5
	etc
fi