Remove duplicate characters and keep the uniq ones
- by manu
How do I remove duplicate characters and keep the uniq one only.
Ex. My input is
EFUAHUU
UUUEUUUUH
UJUJHHACDEFUCU
Expected output is
EFUAH
UEH
UJHACDEF
I cam across perl -pe's/$1//gwhile/(.).*\/' which is wonderful but it is removing even the single occurence of the character in output.
Can anyone help.
Thanks in advance
Manjeet