You're replying to a comment by mark.

mark Permalink
July 13, 2012, 15:13

Hi
I am doing something like example 35:
sed 's/scarlet/red/g;s/ruby/red/g;s/puce/red/g'

The above example replaces 3 words, but I want to replace 214 words in my source file.
Sadly, I get the error:
"unterminated substitute pattern"

But, strangely, if I divide this sed command into smaller blocks (of roughly 40 words), then it works for some reason.
I am really hoping there is a fix since I have to do many of these and need to process at least 214 find/replace tasks at once in the 1 file without errors.
Any help very much appreciated.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "0day_95": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.