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 are file commands?
Explain command to display different lines that are found when compare two files?
What is the unix command to confirm a remote host is alive or not?
Which unix command lists files/folders in alphabetical order?
Differentiate cat command from more command.
What difference between cmp and diff commands?
What do chmod command do?
What does grep v grep do?
What is the command to find maximum memory taking process on the server?
What are awk commands?
What are grep patterns?
What is grep in bash?
What is the difference between grep and grep?
What is difference between grep and find command in unix?
Which command will print your home directory on screen?