what is the use of uniq commmand?

Answer Posted / giridhar tarare

uniq command search the uniq data in file and if some
duplicate date then it put only single records in report.

For Example: cat testnumber.txt | uniq <enter>

File contents:
1233
456
678
1233
678

output file shows:
1233
456
678

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we use grep command in unix?

608


What is the pipe command?

572


How do I run a bash script?

576


Describe the usage and functionality of the command rm –r * in unix?

818


What difference between cmp and diff commands?

716






What is the use of the command 'ls -x chapter[1-5]' ?

659


Can you enlist some commonly used network commands?

594


Explain command to show the space allocation of files?

625


What is time_t?

580


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

556


What do chown command do?

528


What is awk good for?

578


What is the behavioural difference between cmp and diff commands?

670


Why is awk called awk?

573


Which command should you use to find the remaining disk space in unix server?

699