The UNIX and Linux Forums  

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


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep Three Words murbina UNIX for Dummies Questions & Answers 12 3 Weeks Ago 12:38 AM
sed [delete everything between two words] Orbix UNIX for Dummies Questions & Answers 3 12-25-2007 04:27 AM
dictionary words in vim lakshmananindia UNIX for Advanced & Expert Users 1 09-06-2007 03:28 AM
Identify duplicate words in a line using command srinivasan_85 UNIX for Dummies Questions & Answers 8 04-30-2007 10:29 PM
Get the words.. kakashi_jet Shell Programming and Scripting 10 07-31-2006 06:30 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2001
Registered User
 

Join Date: Mar 2001
Posts: 2
Hi, can anyone help me with this small problem.
Say i've got duplicate words in a list e.g
blue
orange
green
green
pink
blue
red

How can I delete all reoccurences of the same word?

Thanks
Forum Sponsor
  #2 (permalink)  
Old 04-01-2001
mib mib is offline
Registered User
 

Join Date: Jan 2001
Location: Calicut
Posts: 228
sort filename | uniq - filename
sort filename | uniq > filename

Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0