Find and replace a word in all files based on file pattern
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a variable called User: "unknown"
in multiple files and the file names like astro_root_sys-dev.txt.
How to find all the files which have user: "unknown" variable and replace that variable value dynamically from User: "unknown"
to User: "sys_user"
.
linux sed regular-expression
add a comment |Â
up vote
0
down vote
favorite
I have a variable called User: "unknown"
in multiple files and the file names like astro_root_sys-dev.txt.
How to find all the files which have user: "unknown" variable and replace that variable value dynamically from User: "unknown"
to User: "sys_user"
.
linux sed regular-expression
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a variable called User: "unknown"
in multiple files and the file names like astro_root_sys-dev.txt.
How to find all the files which have user: "unknown" variable and replace that variable value dynamically from User: "unknown"
to User: "sys_user"
.
linux sed regular-expression
I have a variable called User: "unknown"
in multiple files and the file names like astro_root_sys-dev.txt.
How to find all the files which have user: "unknown" variable and replace that variable value dynamically from User: "unknown"
to User: "sys_user"
.
linux sed regular-expression
linux sed regular-expression
asked 2 mins ago
itgeek
201
201
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f476462%2ffind-and-replace-a-word-in-all-files-based-on-file-pattern%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