Hello,
I am trying to use sed to insert text into apache's httpd.conf so that I can add certain things to that file from shell scripts. example:
I want to add "AddType Application/x-httpd-php .php" directly under that field that says "AddType image/x-icon .ico"
But when I do "sed 's/AddType image/AddType image (I need a carriage return here) AddType Application/x-httpd-php .php/' httpd.conf
Any suggestions?
I am trying to use sed to insert text into apache's httpd.conf so that I can add certain things to that file from shell scripts. example:
I want to add "AddType Application/x-httpd-php .php" directly under that field that says "AddType image/x-icon .ico"
But when I do "sed 's/AddType image/AddType image (I need a carriage return here) AddType Application/x-httpd-php .php/' httpd.conf
Any suggestions?