title: Print incremental date using while loop in bash
body: <p>I trying to print date between 2 dates using while loop in a bash script.</p>
  
  <p>But when i execute i am getting below error:</p>
  
  <pre><code>test.sh: line 8: [: 02-12-14: integer expression expected
  </code></pre>
  
  <p>Below is my code, can anyone help me out</p>
  
  <pre><code>#!/bin/bash
  
  sdate=02-12-14
  edate=02-25-14
  
  
  while [ "$sdate" -le "$edate" ]
  do
  echo $sdate
  sdate=$(date +%m-%d-%y -d "$sdate + 1 day")
  done
  </code></pre>