the following sed command works in terminal but when I wanted to store the output into a variable in a script, it prompts me "sed: -e expression #1, char 27: unterm