I've been trying to wrap my head around this for over an hour now and my searches haven't helped yield the answer.
Trying to set a variable inside a bash script. This variable is taking variable-A and removing variable-B from it.
Prefix="$(echo ${Process} | sed -e 's/${Server}//g')"
So if Process=abcd1wxyz01
and Server=wxyz01
, then Prefix
should end up being abcd1
.
I've tried so many iterations from online searches I honestly can't recall what all I've tried.