sed error "unescaped newline inside substitute pattern"
david+dated+1237311277.37b93e at skytracker.ca
Thu Mar 12 10:58:45 PDT 2009
Here is the php line that gives the error;
cat start_text | sed "s/--maintext--/$test/" > endtext
sed: 1: "s/--maintext--/ Comment ...": unescaped newline inside substitute pattern
where $test contains customer input from a website form
There is something about the content of the text within the variable $test that is causing the error.
Any pointers would be helpful.
More information about the freebsd-questions