I have the following variable TABLES with multiple lines
TABLES="foobar
test
bar
foo
"
I have a variable SKIP with this sed
command
$ echo $SKIP
/bar/d;/foo/d;
I want to use it on sed, like this
echo $TABLES | sed "$SKIP"
But this returns nothing! If I replace the variable with the current content it works
What I am doing wrong?