hi,
In bash script, I need to take out of a character of a string. For this reason, I do:
a=${a:3:1}
After, I need to compare it with a character :. For this reason, I do:
if [$a == ":"]; then ....
but, when I run my script, on my output is:
unary operator expected
How can I compare it?
Txs
In bash script, I need to take out of a character of a string. For this reason, I do:
a=${a:3:1}
After, I need to compare it with a character :. For this reason, I do:
if [$a == ":"]; then ....
but, when I run my script, on my output is:
unary operator expected
How can I compare it?
Txs