How can I find if my file has any repeated duplication. ?
Many of my vi files have large number of molecular co-ordinates, and sometimes, the software I use duplicates molecular co-ordinates on top of the first one, which goes unnoticed and only when I start using the molecule in simulations, that I get to know that this file had a repeated co-rodinates.
Using general grep, i need to test for every line , and see if a pattern is found.
Instead, is there a better approach ?
Ex:
C 8.72073 15.19207 10.44503
C 9.57223 14.02835 10.59743
C 10.54225 13.88199 9.86998
repeats in the file