Using sed with control characters
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
How to replace this word in a file I have to replace a word with control characters globally. how can i do that ? I have tried the below with no success.
Replace "abc_def_a" with "def_a" globally
Tried the below
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g' file.txt
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g'file.txt
sed 's/x01abc_def_ax02/x01def_ax02/g'
linux sed
add a comment |Â
up vote
0
down vote
favorite
How to replace this word in a file I have to replace a word with control characters globally. how can i do that ? I have tried the below with no success.
Replace "abc_def_a" with "def_a" globally
Tried the below
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g' file.txt
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g'file.txt
sed 's/x01abc_def_ax02/x01def_ax02/g'
linux sed
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How to replace this word in a file I have to replace a word with control characters globally. how can i do that ? I have tried the below with no success.
Replace "abc_def_a" with "def_a" globally
Tried the below
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g' file.txt
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g'file.txt
sed 's/x01abc_def_ax02/x01def_ax02/g'
linux sed
How to replace this word in a file I have to replace a word with control characters globally. how can i do that ? I have tried the below with no success.
Replace "abc_def_a" with "def_a" globally
Tried the below
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g' file.txt
sed -i 's/^Aabc_def_a^B/^Adef_a^B/g'file.txt
sed 's/x01abc_def_ax02/x01def_ax02/g'
linux sed
linux sed
edited 1 min ago


ilkkachu
52.8k679145
52.8k679145
asked 5 mins ago


Tom
4
4
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
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%2f474667%2fusing-sed-with-control-characters%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