The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-02-2008
abhi.roy03 abhi.roy03 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
How to remove duplicate lines of a record without changing the order

Hi all,
I have to remove duplicate lines in a file without chainging the order.for eg if i have a record

pqr
def
abc
lmn
pqr
abc
mkh
hgf


the output should be
pqr
def
abc
lmn
mkh
hgf

Plz help me.It is urgent

Abhishek