sed doesn't allow embedded newlines in the replacement for s///, e.g. s/walrus/wal\ rus/ It is not obvious to me how to fix this. There is some code for dealing with line continuations but I don't see how to use it. Felix