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
Are you in or at the office?
What is the difference between grep and grep?
How do you repeat a command in terminal?
What does 'mkdir' command do in UNIX?
Explain ‘library functions’ with respect to unix commands?
What happens when we execute a unix command?
Does cp command overwrite files?
What is the nmap command?
Enlist some filename manipulation commands in unix.
Which command can you use to find the currently running process in unix server?
What are the dos commands?
What is {} in find command?
What does the md command do?
What does sed command do in unix?
Why is shebang used?