Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2009 13:34:36 -0400
From:      David Banning <david+dated+1237311277.37b93e@skytracker.ca>
To:        questions@freebsd.org
Subject:   sed error "unescaped newline inside substitute pattern"
Message-ID:  <20090312173436.GA51898@skytracker.ca>

next in thread | raw e-mail | index | archive | help
Here is the php line that gives the error;

cat start_text | sed "s/--maintext--/$test/" > endtext

give error;

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090312173436.GA51898>