Suppose you have the following file:
... <tag2> a b c a </tag2> ... <tag2> x y y z x </tag2>
How to remove the duplicate lines inside each
<tag2> like the example below?
... <tag2> a b c </tag2> ... <tag2> x y z </tag2>
I would like to search every file in the directory and sub directories and removed these duplicates.