Link to home
Start Free TrialLog in
Avatar of dignified
dignified

asked on

Very Simple BASH Question with Conditional Expressions

I just want to do a logical OR.
This line gives me errors:

if [ ("$v" != "") || ("$c" != "") ]; then

I get this error:
./dcmget: line 71: syntax error near unexpected token `"$v"'
./dcmget: line 71: `        if [ ("$v" != "") || ("$c" != "") ]; then'

I have tried a few variations but nothing seems to work.

ASKER CERTIFIED SOLUTION
Avatar of MikeOM_DBA
MikeOM_DBA
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial