You are viewing a single comment's thread. Return to all comments →
Use an array:
unique_vals=($( cat - | sort -u )) if [[ ${#unique_vals[@]} -eq 3 ]]; then echo "SCALENE" elif [[ ${#unique_vals[@]} -eq 2 ]]; then echo "ISOSCELES" else echo "EQUILATERAL" fi
Seems like cookies are disabled on this browser, please enable them to open this website
More on Conditionals
You are viewing a single comment's thread. Return to all comments →
Use an array: