A utility to append content into a file, if this content isn't already in the file (even in part)
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Is there a *Nix utility by which I could append content to a file (say, append the content of a template file into the end of a second file), only if the content isn't already available in the second file, partially or fully?
One could use this grep solution but I find the code there a bit complicated at the moment and would prefer a dedicated utility if there is one.
bash text-processing io-redirection here-document template
add a comment |Â
up vote
1
down vote
favorite
Is there a *Nix utility by which I could append content to a file (say, append the content of a template file into the end of a second file), only if the content isn't already available in the second file, partially or fully?
One could use this grep solution but I find the code there a bit complicated at the moment and would prefer a dedicated utility if there is one.
bash text-processing io-redirection here-document template
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there a *Nix utility by which I could append content to a file (say, append the content of a template file into the end of a second file), only if the content isn't already available in the second file, partially or fully?
One could use this grep solution but I find the code there a bit complicated at the moment and would prefer a dedicated utility if there is one.
bash text-processing io-redirection here-document template
Is there a *Nix utility by which I could append content to a file (say, append the content of a template file into the end of a second file), only if the content isn't already available in the second file, partially or fully?
One could use this grep solution but I find the code there a bit complicated at the moment and would prefer a dedicated utility if there is one.
bash text-processing io-redirection here-document template
edited Jun 14 at 9:17
asked Jun 14 at 4:57
user9303970
116224
116224
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%2f449721%2fa-utility-to-append-content-into-a-file-if-this-content-isnt-already-in-the-fi%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