Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems using sed from command line

Status
Not open for further replies.

chris96

MIS
Jul 3, 2003
1
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top