sed error : Syntax error: redirection unexpected

My script is throwing the error 'Syntax error: redirection unexpected'

My line of code..

cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3

HTML tags are getting in the way but they're needed to keep from replacing other parts of the code within the page. I know I'll need on of the ",', or ` but I'm not sure where. Please help.

Hi,

first you don't need cat. You can invoke sed and give it a filename a parameter.

Sed syntax is:

sed 's///' file

If your search-replace-string contains "/", you have to escape them.

HTH Chris

Yes, I'm aware of both but as you can see in my example, it doesn't contain "/". It's html code. I'll try with putting the segments of html code in ", ', ` or as I've just learned with one of the delimiters :,_, or |

I'll come back to this later once I find out

just figured it out.. used the delimiter _ then \< \>