I rearranged the layout of a webserver, and I need to fix URLs that are no
longer correct in the html files. I wrote a sed script to do this, and it makes
the substitutions correctly, but it strips the newlines of the ends of the
lines so the output is one long line. Sed also issues a warning about now
newline at the end of the file:

$sed -f substitutions.sed sm.html
sed: Missing newline at end of file somefile.html.
<a bunch of output from sed  that's one single line.... >

How do I keep sed from removing the newlines at the end of each line? What is
causing that error message?


 -- 
Prentice
[EMAIL PROTECTED]
Princeton Plasma Physics Lab
http://www.pppl.gov  


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to