From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 17:16:41 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE5D716A468 for ; Thu, 13 Sep 2007 17:16:41 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by mx1.freebsd.org (Postfix) with ESMTP id 712FB13C478 for ; Thu, 13 Sep 2007 17:16:41 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so392771nzf for ; Thu, 13 Sep 2007 10:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=DcDnXnMP5zMMVNVZJohasTn7+45noC5yADhkxwkTOSQ=; b=dGACeOTwrGOUNP36CXZ6SrgPiBPKbgjWmWP1RSY/qAPtaN5jX+FnSnBIQJNqNXI9PaF/+3ucomTurhlHneH7yr1IfZVDtsSwMK1zUyYIgwVnUbumPj3hvZpbxN3hvGvCaE55mMZmwkd2cYYPJh7PaPvmjl24Y6mp8r5rWCVsGDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RCf383K+uw2H3UlETlCoBLyid97tiYmU549ptpIB5LRnL6bBMHOMlvgKAo4ht8825W3Bao17mBQPny3J3rdbROXGdud5W/hWSyxDxwqLGdizDJE3sU4QvWjLJIqqwqUcsQQlCqGcKOVQn3m4C54zjGJLTmKJqXzEhmSg+RFr1oE= Received: by 10.142.77.11 with SMTP id z11mr170922wfa.1189703800094; Thu, 13 Sep 2007 10:16:40 -0700 (PDT) Received: by 10.142.78.21 with HTTP; Thu, 13 Sep 2007 10:16:40 -0700 (PDT) Message-ID: Date: Thu, 13 Sep 2007 10:16:40 -0700 From: "Kurt Buff" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 17:16:41 -0000 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@gmail.com NO kurt.buff@gmail.com 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. I don't have the perl skills, though that would be ideal. Any help out there? Kurt