Below is the snippet of a shell script from a larger script. It removes the quotes from the string that is held by a variable. I am doing it using sed, but is it efficient?
You can do it with only one call to sed:
sed
$ echo "\"html\\test\\\"" | sed 's/^"\(.*\)"$/\1/' html\test\