what is the use of uniq commmand?

Answer Posted / jagadeeb choudhury

The Uniq command is used to report and Remove repeated line
in a file.
This is a value able tool for a lot of scripting and Testing.
Ex-
$ uniq Duplicate_line No_duplicate_line

If You want to see without repeated lines
Ex-
$ cat repeated_line_file | uniq


Thanks,
Jagadeeb@gmail.com

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the command for finding the current date.

573


What are filter commands in unix?

547


What is the use of find command in unix?

573


What command is used to switching between users in unix?

556


Name the general commands in using unix os for a beginner?

617






What is the use of cut command in unix?

683


What is unix command?

577


What is the search command in unix?

594


What is difference between grep and find command in unix?

573


What is “chmod” command?

560


What is .sh file?

612


What is the size of time_t?

637


Which command is used to kill the last background job?

769


How does shebang work?

584


Who invented grep?

646