Hi Community builders,
Please I want to find a way to use sed to substitute a word after a specific character and before another specific character without knowing what is the word.
Like :
Subject: Automation - This is a test build
I want it to be :
Subject: Hello - This is a test build
Taking into consideration that I don't know that the word is "Automation"
I've tried sed 's/Subject:[^ ]* .*-/Hello/g'
the output was : "Hello This is a test build"
Your assistance is highly appreciated.