Printing date range in AIX
<p>I'm trying to print date range in AIX. I'm not able to use 'date' in AIX properly. I've tried some solutions suggested in Stack overflow. Nothing worked. Please find the error and code below. 
I can't download 'GNU'.</p>

<pre><code>#!/bin/ksh
startdate=20141030
enddate=20141120

loop_date=$startdate

let j=0
while [ "$loop_date" -ne "$enddate" ]; do
        loop_date=`date   -j -v+${j}d  -f "%Y%m%d" "$startdate" +"%Y%m%d"`
        echo $loop_date
        let j=j+1
done
</code></pre>

<p>Error: 
date: illegal option -- j
Usage: date [-u] [+Field Descriptors]</p>