I am looking for a sed in which I can recognize all of the text in between two indicators and then replace it with a place holder.
For instance, the 1st indicator is a list of words
"no|noone|havent"
and the 2nd indicator is a list of punctuation
".|,|!".
From a sentence such as
"noone understands me."
I want to recognize "understands me" and add an affix onto the end of each word, desired result being
"noone understands_AFFIX me_AFFIX."
.
I know that there is the sed:
sed -n '/WORD1/,/WORD2/p' /path/to/file
which recognizes the content between two indicators, but I am not able to adapt it properly to accurately and efficiently solve my specific issue. Does anyone have a suggestion?