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 do chgrp command do?

583


Write a command to display a file’s contents in various formats?

618


What is grep and how do you use it?

568


What is the pipe command?

570


What are the commands in UNIX to list the files in a Directory?

609






What is command substitution?

617


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

582


Which unix command lists files/folders in alphabetical order?

610


what is the advaantage of each user having its own copy of the shell?

2025


What is unix command?

575


How do I use nslookup?

568


What are awk commands?

578


What is s and g in sed command?

551


What is the function of grep command in unix?

578


Differentiate cat command from more command.

570