remove duplicate lines from file linux/sh

greetings,

i'm hoping there is a way to cat a file, remove duplicate lines and send that output to a new file. the file will always vary but be something similar to this:

please keep in mind that the above could be eight occurrences of each hostname or it might simply have another four of an entirely different name. but i wish the above to look like this:

thanx in advance!

uniq <filename>
1 Like

i'm almost disappointed that it was that simple!! thanx again!