I want to remove a pattern from a string (using sed and pipes), but this pattern is not always the same and is defined previously on a variable.
this example mimics the desired behavior
toremove="Osiris"
mystring="Horus,Osiris,Apis"
mystring=$(echo $mystring | sed -e 's/$toremove//g')
no succcess so far. Output is the same as input,