Article 53XGA Delete consecutive words from strings

Delete consecutive words from strings

by
Tathastu
from LinuxQuestions.org on (#53XGA)
I have a multiple strings like:
Input:
linux-unix-linux-unix-manjaro
I want to remove consecutive words so that output will be:

Output
linux-unix-manjaro

Please someone provide awk or sed based solution or any other.latest?d=yIl2AUoC8zA latest?i=Mf2sPNAXSzQ:BgPiQUT1Jgs:F7zBnMy latest?i=Mf2sPNAXSzQ:BgPiQUT1Jgs:V_sGLiP latest?d=qj6IDK7rITs latest?i=Mf2sPNAXSzQ:BgPiQUT1Jgs:gIN9vFwMf2sPNAXSzQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments