I\'m looking a way to build conditional assignments in bash:
In Java it looks like this:
int variable= (condition) ? 1 : 0;
I wanted to do a conditional assignment with strings and I ended up with :
SOWHAT=$([ "$MYVALUE" = "value" ] && echo "YES" || echo "NO")