I want to check for more than one hyphen and then hold the first one and delete the rest of the hyphen.
I try something like this sed 's/\([-]\)\1/\1/' but this doesn't work.
I try something like this sed 's/\([a-z]\)-\1/ \1/g' but here the script delete all the hyphen.
I want to go from this : I want-to check for-more than one-hyphen.
to this : I want-to check for more than one hyphen.
Thanks anyway