I am writing a script to automate few steps and need to create new configuration files with predefined location and text.
I am able to create the files however i am not sure how i can enter the text and save the files automatically using VIM.
Create a configuration file
/etc/httpd/conf.d/cgi-enabled.conf with the following text
<Directory "/var/www/html/cgi-enabled"> Options +ExecCGI AddHandler cgi-script .cgi .pl </Directory>
and save it, this would allow me to move on to next configuration file. Any suggestions ?