The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 12-01-2004
hellsd hellsd is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 20
Removing duplicate lines ignore case

hi,

I have the following input in file:
abc
ab
a
AB
b
c
a
C
B
When I use uniq -u file,the out put file is:
abc
ab
AB
c
v
B
C
b

Unfortunately, the uniq is not able to ignore case.

How can I check the file in order my output file will be:
abc
v

Thanks, Roy.