Answer Posted / rhino
Small correction to Answer #3 If the line is repeated in
the very next line it will be removed , Else this will be
displayed as if it is a new number
Ex. as below -- This has been cross checked before answering
Ex : File duplitest has below lines
RohiBaby
RohiBaby
GunduBaby
ChinniBaby
RohiBaby
Rohith
cmd. : cat duplitest | uniq -- Gives below o/p
RohiBaby
GunduBaby
ChinniBaby
RohiBaby
Rohith
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Write a command to display a file’s contents in various formats?
What is unix command?
What are reported commands?
How to display no of records in oracle using unix command?
Does cp command overwrite files?
Explain ‘system calls’ with respect to unix commands?
Name the general commands in using unix os for a beginner?
What is the difference between awk and grep?
How do I use grep to search for a file?
What is unix command line?
How do I use grep to find a file?
What happens when we execute a unix command?
What is s and g in sed command?
How do you grep recursively?
What is the use of find command in unix?