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 do know about tee command and its usage?
What is the size of time_t?
What is the significance of the 'tee' command?
What is command statement?
What is command substitution?
Which command is used to delete all files in the current directory and all its sub-directories?
How do I use grep to search for a file?
Explain ‘system calls’ with respect to unix commands?
What do chmod command do?
Why is grep called grep?
How do I search for a file in unix command?
How do I run a bash script?
Write a command that will display files in the current directory, in a colored, long format.
What is nr in awk command?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.