source file
A B C
E F G
A B C
o/p Should be
A B C
E F G
i dont want to use sort comand as it is adding blank line in the end.I used this
sed '$!N; /^\(.*\)\n\1$/!P; D'
but it required sorted data any alternative to sort the data instead of sed command..?