The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 04-28-2008
bisla.yogender bisla.yogender is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 30
Thanks for the help.

I know this was the silliest question I have ever asked, but the solution was not striking since last 1 hour. Now I got the solution. My code should be:

for n in yogi.txt
do
b=`expr $b + 1`
echo "$b.) $n"
done