Quote:
|
Originally Posted by hitmansilentass
there are too many 'or' (||) conditions which i want to reduce so that it looks better
|
It's not clear what you mean by "looks better". Exactly what would "look better" look like? Assuming your variables do not contain whitespace, another alternative without || might be
Code:
if [[ `echo $XXXX $YYYYY $TTTT $NNNN $QQQQ |wc -w` -ne 5 ]]; then
whatever
fi