I have a file which contains strings which are very close to each other (ie;
many strings are actually substrings of others). Other than looping through
each line in the file to check for an *exact* match, is there a better way
of testing to see if there's an *exact* match for a string in ths file.
For example, if I test this file for the substring 'xx', the test *should*
fail as there is no record with this value. Using 'grep' for 'xx' would find
'xx' as it occurs in this file when what I need is for this test to fail as
none of the records is an exact match to 'xx'.
I can do a loop but was hoping there'd be a better way.
Any suggestions would be appreciated.