I am not sure what you are going to do. If you echo "$comment1", what do you get? Is the output you want to parse in a variable? If it is just the output of a command, try using that command and put a pipe | behind that command followed by the
sed command. If it is a file, use it as I did above. If there is no reason to force the text into a variable, don't do it.