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 command is used to switching between users in unix?
How do you grep recursively?
How many unix commands are there?
What is the difference between grep and grep?
What is “chmod” command?
Who command in unix?
What is nr in awk command?
Which unix command to make a new directory?
What is the comma to show the space allocation of files?
What is ‘ps’ command for?
Explain ‘system calls’ with respect to unix commands?
What is the pipe command?
What command is used to check the current users?
What difference between cmp and diff commands?
Why is shebang used?