# Problem with uniq command

Say I have a file name "reading.txt" with lots of duplicates:

book

book

paper

paper

article

article

magazine

magazine

I want to remove the duplicates, so I typed this

The output should come like this

book

paper

article

magazine

But it shows all elements of reading.txt file like this

[z@localhost Documents]$cat reading.txt book book paper paper article article magazine magazine [z@localhost Documents]$ uniq reading.txt book

book

paper

paper

article

article

magazine

more