Search Results

Search: Posts Made By: gokulraj23
3,490
Posted By gokulraj23
Problem in using AND OR condition together
a=rhino
b=crocodil
c=testsc
if [ [ "$a" = rhino || "$b" = crocodile ] && "$c" = testsc ]
then
echo "Test #5 succeeds."
else
echo "Test #5 fails."
fi

i need to test or condition before...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 05:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy