Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Removing a set of Duplicate lines from a file

$
0
0
Hi,

How do i remove a set of duplicate lines from a file.

My file contains the lines:
Code:

abc
def
ghi
 
abc
def
ghi
 
jkl
mno
pqr
 
jkl
mno
pqr
 
stu
vwx
yza

My output should look like:

Code:

abc
def
ghi
 
jkl
mno
pqr
 
stu
vwx
yza

Please let me know if this is not clear..

Thanks in advance.

-SREENIVAS

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images