** OT : awk works only for first line

Hi,


   I am trying awk to get the first word from each line in a file : I am doing 
: 


BEGIN {


  FS=":"


}


{print $1}





For the first line : it prints the first work. For other lines it
prints other words also. I tried to put in FS as space but that did not
help. Can someone help? I did try google but could only find example
like above. Thanks for help. 




      

Other related posts: