title: Loop in UNIX is not working
body: <p>Please tell me what is wrong with the UNIX code below.</p>
  
  <pre><code>#!/bin/ksh
  
   p=10
   for i in $p
   do
    echo $i
   done
  </code></pre>
  
  <p>i am expecting output as </p>
  
  <pre><code>1
  2
  3
  .
  .
  .
  </code></pre>
  
  <p>but the output am getting is just 10
  I need for loop not while loop.</p>