|Here is a code:|
I read a properties "connectionType" from file and asiign to R1
Then I print it and I see that this is "rmi"
But when I try to evaluate with if statement it does not match with the same value "rmi"
Please explain why ? What I did wrong.
I tried to delete whitespaces and it still did not work.
R1=`grep '^connectionType=' PhoenixBatchInterface.properties|sed 's/connectionType=//'`
if [ "$R1" = "rmi" ]
echo NOT RMI
Here is result: