sed '/VirtualHost/,/VirtualHost/d' /www/conf/httpd.conf steve -----Original Message----- From: Jesse Angell [mailto:[EMAIL PROTECTED]] Sent: 21 June 2002 02:49 To: [EMAIL PROTECTED] Subject: Shell Script
Hello, I need to write a shell script to do the following edit the /www/conf/httpd.conf file and search for the <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 for the specified user varible.. So it looks for the user specified.. then deletes all of the users virtual host stuff including the start of the virtual host and the closing of it.. Please help me out... -------------- Jesse Angell PalaceUnlimited.com #1 Palace Host _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list