I\'m trying to use VIM to remove a duplicate line in an XML file I created. (I can\'t recreate the file because the ID numbers will change.)
The file looks something
instead of using vim you do something like
sort filename | uniq -c | grep -v "^[ \t]*1[ \t]"
to figure out what is the duplicate line and then just use normal search to visit it and delete it