I want to remove all lines where all the second column 05408736032 are same
these lines are not consecutive. Its fine to remove all the lines . I dont have to keep one of them around.
Sorry my unix fu is really weak from non usage :) .
If the columns are not fixed width, you can still use sort:
sort -t '|' --key=10,10 -g FILENAME
-tflag will set the separator.
-gis just for natural numeric ordering.