Nevermind about everything.... I got the following from a previous post in this thread.....
Code:
:t
/<VirtualHost/,/VirtualHost>/ { # For each line in this range
/VirtualHost>/!{ # If not at the /VirtualHost>/ marker
$!{ # nor the last line of the file,
N; # add the Next line to the pattern space
bt
} # and branch (loop back) to the :t label.
} # This line matches the /VirtualHost>/ marker.
/lal.com/d; # If /lal.com/ matches, delete the block.
} # Otherwise, the block will be printed.
This explains the sed code you have been asking about. Please READ next time before you go posting new threads and posts.
And for the record, read this -
http://www.grymoire.com/Unix/Sed.html
That will get you in the right direction with sed.
Cheers,
Josh