[Ilugc] Doubt in awk script

  • From: anjeas_net@xxxxxxxxx (Ashok Antony)
  • Date: Fri Oct 12 12:11:05 2007

hi all


in the below script, could any one explain me the usage of  '1'

awk 'BEGIN{OFS=FS=",";c=1}
    { 
     n=sprintf("%03d",c++)
     $3=$3n     
     print c
    }
    1' "file"


thanks,

anthonY

       
---------------------------------
Pinpoint customers who are looking for what you sell. 

Other related posts: