sed /'\<VirtualHost *\>'/,/'\<VirtualHost\>'/d /www/conf/httpd.conf will do it, leave out the '/' in the second RegEx match
steve -----Original Message----- From: Jesse Angell [mailto:[EMAIL PROTECTED]] Sent: 11 June 2002 02:29 To: [EMAIL PROTECTED] Subject: Shell Scripting I need to have a script open the file /www/conf/httpd.conf <VirtualHost *> DocumentRoot /var/www/virtual/$user/html Servername $user.palaceunlimited.com ErrorLog /var/www/virtual/$user/logs/error_log CustomLog /var/www/virtual/$user/logs/access_log combined </VirtualHost> and then delete all of that. How do I do this?? -------------- Jesse Angell PalaceUnlimited.com #1 Palace Host _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list