Delete duplicate lines within a text file in two steps:

> sort input.txt | awk '!x[$0]++' >> output.txt