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
Write a command to display a file’s contents in various formats?
Which command can you use to find the currently running process in unix server?
What is the behavioural difference between cmp and diff commands?
Explain command to view process running?
What are the differences among a system call, a library function, and a unix command?
What does sed command do in unix?
How can we use grep command in unix?
What is awk used for?
What is grep in bash?
What is the use of the tee command?
Explain command to display different lines that are found when compare two files?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
How do you repeat a command in terminal?
What do chmod command do?
How do I use grep to find a file?