Code: Select all
echo "textA textB" | sed -e 's///g'
What I want to do is detect "textA", one or more spaces, then "textB", and replace it with something else.
The something else, doesn't matter.
The problem is, how do I detect an arbitrary number of spaces?
Code: Select all
echo "textA textB" | sed -e 's/textASOMETHINGHERE textB/replacement/g'