what is the use of uniq commmand?

Answer Posted / saurabh

This is the output of the command:
>cat skg.txt
aa
aa
bb
cc
bb
dd
cc
ee

--------------

>cat skg.txt | uniq

aa
bb
cc
bb
dd
cc
ee

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the functionality of a top command?

628


How do I open a port?

596


Explain command to display different lines that are found when compare two files?

678


What is the difference between cat command and more command?

601


What is the significance of the 'tee' command?

600






What is the comma to show the space allocation of files?

562


Using unix command how to display no of records in oracle?

615


Why is shebang used?

600


Which command is used to create a directory?

577


What does #!/ Bin sh do?

599


How to use grep command to list find the records of a file containing 10 different strings?

650


What is the command to compare two files in unix?

627


What is awk good for?

590


What is command substitution?

627


Which command is used to kill the last background job?

787