Scripting question

Jerry McAllister jerrymc at
Thu Sep 13 10:20:26 PDT 2007

On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote:

> I'm trying to do some text file manipulation, and it's driving me nuts.
> I've got a sorted file of SMTP addresses, and want to eliminate the
> lines that are the same up to a space character within the line.
> Example:
> kurt.buff at NO
> kurt.buff at OK
> The above lines *both* need to be eliminated from output - I don't
> want the first or second of them, I want them both gone.
> I've looked at sort and uniq, and I've googled a fair bit but can't
> seem to find anything that would do this.

Seems like this is right up sort's alley.
Is the first string always separated from the rest by white space
or does your first string sometimes include white space.


> I don't have the perl skills, though that would be ideal.
> Any help out there?
> Kurt
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list