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
Need Help: Collecting similar messages in a file ashish.kapil Shell Programming and Scripting 2 01-16-2008 06:57 AM
Command similar to doskey halel UNIX for Dummies Questions & Answers 4 05-16-2006 08:49 AM
Similar Forum for MS Access? vcardo10 UNIX for Dummies Questions & Answers 2 12-30-2003 10:42 AM
Would need a friend on the net, someone who knows a lot of UNIX or similar... zeus Security 0 06-23-2003 06:36 PM
from dos dir a: to similar to a dds tape? yls177 Shell Programming and Scripting 3 11-07-2002 11:30 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-22-2008
Streetrcr Streetrcr is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 10
similar words

hi

i have created a pipe which outputs a list of words such as:


Code:
hello
yay
foo
yah
good
goof

and from this i want to find words which only differ by their last letters ie yay/yah and good/goof.

i would only need to print out the first instance of the word.
these words are not always adjacent as even after sorting, there may be other words which come in between these.

any ideas anyone?
  #2 (permalink)  
Old 03-22-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
good/goof and yah/yay will be adjacent after a sort. The only words that could separate them would be stuff like gooe and yap, thus giving you a triple instead of a double match.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0