I\'ve created a bash script that takes a parameter. I want to pass that parameter to sed to replace an existing string with another which is composed of the variable:
just do like this:
var=apple sed -i "s/pineapple/$"