Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
[OT SED AWK GREP] How to remove matching lines?
  • From: wilson@xxxxxxxxxxx (Jonathan Wilson)
  • Date: Wed, 02 May 2001 12:36:22 -0500
  • Message-id: <>

I have a file that's a list of hostnames from 2 different apache servers. I'd like to get rid of all duplicates with sed or awk. for example after combining the two lists and running sort on it I get the following:

I want to get rid of all duplicates, such as "" and "" in this example.

can this be done?

Jonathan Wilson
System Administrator

Cedar Creek Software
Central Texas IT

< Previous Next >