The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 09-26-2008
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,875
Quote:
Originally Posted by risk_sly View Post
Thanks for the reply Jim. But when I tried the script, it returned "event not found error". any idea what's causing this error?
[...]
It's your shell ((t)csh I suppose).
Try using a script:

Code:
$ cat uniq.awk 
!arr[$1]++
$ awk -f uniq.awk file
COL1, COL2, COL3
A, 1234, 1234
B, 3k32, 2322
C, Xk32, TTT