How to do multiple comaprison in a IF statement
How to accomplish multiple comaprison in a IF statement?
if [ $r = 'fail' ] or if [ $r = 'FAIL'] or if [ $r = 'Fail' ]
echo the state is $r. please note it
im not able to accomplish this .. giving error.. please let me know how to do it.
You could use "case" instead multiples if
See those links
Try using regular expressions. Something along the lines of
if [[ $a -eq $b || $a -eq $c .... ]]
if [[ $a -lt $b && $a -gt $c .... ]]
|All times are GMT -5. The time now is 09:29 AM.|