Sponsored Content
Full Discussion: how to do this
Top Forums Shell Programming and Scripting how to do this Post 302068857 by matrixmadhan on Tuesday 21st of March 2006 10:19:58 AM
Old 03-21-2006
what have u tried so far ?!!! Smilie

Code:
# !/usr/bin/ksh
while read str1 str2 cnt
do
  i=1
  while [ cnt -ge 1 ]
  do
     echo $str1 $str2 $i
     cnt=$(($cnt - 1))
     i=$(($i + 1))
  done
done < datafile
exit 0

 
All times are GMT -4. The time now is 04:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy