Hi. I just have to share this one. As you may know, I'm sort of a webmaster ;). One thing which bothered me: How do I replace a block of text in multiple files with another text? Whereas this is very easy with strings, I just couldn't figure out how to that if it involved multiple lines. Until today. http://www2.linuxjournal.com/lj-issues/issue27/1224.html has the solution: sed -e '/START/r bar' -e '/START/,/END/d' foo where START = regex marking the beginning of the text block to be replaced END = regex marking the end of that block bar = the file containing the substitution text foo = the file in which the substitution takes place It works! Maybe it helps someone here who is as 'scriptically challenged' as I am ;). Regards tom -- Thomas 'tom' Berger, [EMAIL PROTECTED], http://www.mandrakeuser.org/ "Alice moving under skies Never seen by waking-eyes" All advice provided without warranty of any kind. I *may* be wrong ...
