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

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

832


Explain command to show the space allocation of files?

835


What is the use of finger command?

830


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

890


What does the “echo” command do?

835


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

804


What are grep patterns?

771


What is $0 bash?

889


How do I use grep to find a file?

808


What are the general commands in using unix os for a beginner?

808


What does the command '$ls | wc –l > file1' do?

902


What are filter commands in unix?

790


Describe the zip/unzip command using gzip.

825


What is the pipe command?

812


How do I run a whois command?

825