I\'m looking a way to build conditional assignments in bash:
In Java it looks like this:
int variable= (condition) ? 1 : 0;
As per Jonathan's comment:
variable=$(( 1 == 1 ? 1 : 0 ))
I revised the original answer which just echo'd the value of the condition operator, it didn't actually show any assignment.
echo