Sed command writes the expression in outer ifmodule
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
my config file has this
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
I want to change "index.php" to "index.temp"
I created this
sed -i -e '/s/index.php/index.temp/â dir.conf
It makes this,
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
ndex.php/index.temp/
sed
New contributor
add a comment |Â
up vote
0
down vote
favorite
my config file has this
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
I want to change "index.php" to "index.temp"
I created this
sed -i -e '/s/index.php/index.temp/â dir.conf
It makes this,
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
ndex.php/index.temp/
sed
New contributor
1
Welcome , use'
instead ofâÂÂ
; e,g : usesed -i -e '/s/index.php/index.temp/' dir.conf
instead ofsed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
my config file has this
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
I want to change "index.php" to "index.temp"
I created this
sed -i -e '/s/index.php/index.temp/â dir.conf
It makes this,
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
ndex.php/index.temp/
sed
New contributor
my config file has this
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
I want to change "index.php" to "index.temp"
I created this
sed -i -e '/s/index.php/index.temp/â dir.conf
It makes this,
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
ndex.php/index.temp/
sed
sed
New contributor
New contributor
New contributor
asked 30 mins ago
Ariana williams
1
1
New contributor
New contributor
1
Welcome , use'
instead ofâÂÂ
; e,g : usesed -i -e '/s/index.php/index.temp/' dir.conf
instead ofsed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago
add a comment |Â
1
Welcome , use'
instead ofâÂÂ
; e,g : usesed -i -e '/s/index.php/index.temp/' dir.conf
instead ofsed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago
1
1
Welcome , use
'
instead of âÂÂ
; e,g : use sed -i -e '/s/index.php/index.temp/' dir.conf
instead of sed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago
Welcome , use
'
instead of âÂÂ
; e,g : use sed -i -e '/s/index.php/index.temp/' dir.conf
instead of sed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ariana williams is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Ariana williams is a new contributor. Be nice, and check out our Code of Conduct.
Ariana williams is a new contributor. Be nice, and check out our Code of Conduct.
Ariana williams is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479637%2fsed-command-writes-the-expression-in-outer-ifmodule%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Welcome , use
'
instead ofâÂÂ
; e,g : usesed -i -e '/s/index.php/index.temp/' dir.conf
instead ofsed -i -e '/s/index.php/index.temp/â dir.conf
â GAD3R
10 mins ago