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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 12-04-2007
user_prady user_prady is offline
Registered User
 

Join Date: Sep 2007
Posts: 163
Quote:
Originally Posted by ghostdog74 View Post
Code:
awk 'BEGIN { 
  line[1]="a"
  line[2]="b"
  line[3]="c"
  for ( i=1;i<=3;i++) {
    result=result""line[i]
  }
  print result
}'
Thanks I did like this

Code:
		 input = ""
		 for (i=1 ; i < j ; i ++){
		   input = sprint input "" line[i]
		 }
Reply With Quote