Well, the problem is exactly what the error message tells you. Remember that for a substitution in sed, the syntax is
's/pattern/replacement/',
assuming you're using '/' to separate parts in the command (you can use other characters, of course, but that isn't important here). If you missed out one of the '/' characters, you'd get the "unterminated command" message, so I'd at least check that.
|