2 May
2001
2 May
'01
17:28
On Wed, 2 May 2001, Jonathan Wilson wrote:
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 "asdf.net" and "sdfg.net" in this example.
uniq filename Or, if you are running sort on the file anyway, use sort -u filename. regards, davej.