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
How does shebang work?
What is command statement?
What does the md command do?
Explain ‘system calls’ with respect to unix commands?
What is grep r?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Why is awk called awk?
What happens when we execute a unix command?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the comma to display different lines that are found when compare two files?
What is the use of awk command in unix?
Does cp command overwrite files?
Which command is used to create a directory?
What's a command word?
What does sed command do in unix?