title: Comparing two variables in while loop BASH
body: <p>I am trying to compare two variable in bash in nested <code>while</code> loops and I am having issues with:</p>
  
  <blockquote>
    <p>[: 1, : integer expression expected.</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>#!/bin/bash
  
  a="10",b="5"
  i="1", j="1"
  while [ $i -ne $a ]
  do
          while [ $j -ne $b ]
          do
                  echo"In Child Loop $j Times"
                  ((j++))
          done
          j="1"
          echo"In Parent Loop $i Times"
          ((i++))
  done
  </code></pre>