in reply to Deleting a string which is repeating(more than once) in a file.
uniq <input >output [download]
Aaron B. Available for small or large Perl jobs; see my home node.