I am writting a program for Apache that adds virtual hosts without having to manually use pico or vi. I have it so it will collect information and output it to the .conf file but I am really not sure how to scan over the file to locate the section of lines that the virtual host is composed of then delete them. Can anyone help?
Thank You!