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
What is the command to view process running?
Explain how to use grep command to list find the records of a file containing 10 different strings?
How do you repeat a command in terminal?
What is the unix command to confirm a remote host is alive or not?
What does grep v grep do?
What is the use of the command 'ls -x chapter[1-5]' ?
Enumerate some of the most commonly used network commands in unix?
What is the use of sed command in unix?
What is awk good for?
What will the following command do?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
Enlist some filename manipulation commands in unix.
What are grep patterns?
What is the nmap command?
What is {} in find command?