linux shell script [: ==: unary operator expected code example
Example: shell [: =: unary operator expected
If you're using bash, you can use the [[ syntax, which
doesn't require the quotes:
if [[ $var = $var1 ]]; then
If you're using bash, you can use the [[ syntax, which
doesn't require the quotes:
if [[ $var = $var1 ]]; then