title: If condition issue| AIX - bash | comparing a value from file to hardcoded value
body: <p><code>if [ $data == $dis ]</code>
  this line is not giving expected results in the script</p>
  
  <p>Tried on terminal, it works fine. "true" is expected from the script and then wanna delete that line from the file</p>
  
  <pre><code>root@M5-L-G01FQY9:/mnt/c/Users/Vinita.a.wadhwani/Downloads/Rough# d="&lt;disabled&gt;&lt;/disabled&gt;"
  root@M5-L-G01FQY9:/mnt/c/Users/Vinita.a.wadhwani/Downloads/Rough# c="&lt;disabled&gt;&lt;/disabled&gt;"
  root@M5-L-G01FQY9:/mnt/c/Users/Vinita.a.wadhwani/Downloads/Rough# if [ $d == $c ]
  &gt; then
  &gt; echo "true"
  &gt; fi
  true
  </code></pre>
  
  <p>Code is as follows:</p>
  
  <pre><code>dirmon=$1
  action=$2
  node=$(grep -l $dirmon *)
  line=$(grep -n -m 1 $dirmon $node | sed  's/\([0-9]*\).*/\1/')
  echo 'Performing' $action 'action on dirmon-'$dirmon 'which is present in node-'$node
  no=$(($line+20))
  data=$(sed -n "${no}p" $node) #gives results as &lt;disabled&gt;&lt;/disabled&gt;
  echo $data
  dis="&lt;disabled&gt;&lt;/disabled&gt;"
  echo $dis
  if [ $data == $dis ]
  then
  echo 'true'
  fi
  #echo 'false'
  </code></pre>
  
  <p>expected results:</p>
  
  <pre><code>root@M5-L-G01FQY9:/mnt/c/Users/Vinita/Downloads/Rough# ./On* YELLOW start
  Performing start action on dirmon-YELLOW which is present in node-NODE.txt
  &lt;disabled&gt;&lt;/disabled&gt;
  &lt;disabled&gt;&lt;/disabled&gt;
  true
  </code></pre>
  
  <p>Actual results</p>
  
  <pre><code>root@M5-L-G01FQY9:/mnt/c/Users/Vinita/Downloads/Rough# ./On* YELLOW start
  Performing start action on dirmon-YELLOW which is present in node-NODE.txt
  &lt;disabled&gt;&lt;/disabled&gt;
  &lt;disabled&gt;&lt;/disabled&gt;
  </code></pre>