Thread
: [Solved]
Comment out lines in .htaccess using sed command
View Single Post
#
3
(
permalink
)
04-07-2009, 01:16 AM
cosminnci
Junior Member
User
Join Date: Jul 2008
Location: SM
OS: CentOs
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power:
0
[Solved] comment lines in .htaccess
It works.
Thank You.
Code:
sed -i '/^php_*a*/ s/^/#/' myfile.txt
used it with -i edit files in place
Last edited by nixcraft; 04-07-2009 at
11:31 AM
.
cosminnci
View Public Profile
Send a private message to cosminnci
Find all posts by cosminnci