1

Remove duplicates lines in a files

view story
linux-howto

http://www.unix.com – Quote: Hi Am using unix ksh.. I have a file called FILE Code: cat FILE 11/11/2012 11/11/2012 12/11/2012 15/11/2012 need to remove the duplicates dates ( ie 11/11/2012 is present two times i need remove one duplicates date ) Code: Need outputs like this 11/11/2012 12/11/2012 15/11/2012 I have tried using awk command and uniq command its not working Code: sort -n -k 1.7,1.10 -k 1.4,1.5 -k 1.1,1.2 FILE awk !x[$0]++ FILE Can any one help me.... (HowTos)