The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-31-2008
babycakes babycakes is offline
Registered User
 

Join Date: Jan 2008
Posts: 1
Red face How to uniq third field in a file

Hi ;

I have a question regarding the uniq command in unix

How do I uniq 3rd field in a file ?



original file :
zoom coord 39 18652 39 18652
zoom coord 39 18653 39 18653
zoom coord 39 18818 39 18818
zoom coord 39 18840 39 18840
zoom coord 41 15096 41 15096
zoom coord 41 15261 41 15261
zoom coord 41 15283 41 15283
zoom coord 53 16385 53 16385
zoom coord 53 16406 53 16406

desire output
zoom coord 39 18652 39 18652
zoom coord 41 15096 41 15096
zoom coord 53 16385 53 16385

Thanks
Reply With Quote
Forum Sponsor