Trying to get only words that come before "/", I wrote:
T='He/She is a very handsome/beautiful man/woman indeed.'
echo "$T" | sed -E 's#\b(.*)/(.*)\b#\1#g'
However, I only got to make it work in the last occurrence (although I'm using "g" in sed sentence):
He/She is a very handsome/beautiful man.
My desired output is: "He is a very handsome man indeed."
Any ideas? Thank you.