A utility to append content into a file, if this content isn't already in the file (even in part)

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












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.







share|improve this question

























    up vote
    1
    down vote

    favorite
    1












    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.







    share|improve this question























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      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.







      share|improve this question













      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.









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 14 at 9:17
























      asked Jun 14 at 4:57









      user9303970

      116224




      116224

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          f5OWSaQyJ,Px8jmqSKkRiterCafVKh0m,AnVJ,2zvJzBSGGZJ1j,V3D443,4oW09G
          3GvLoEwmEzgY7BgM,o9R98ITZO,e3MecyfnEGJ6ODAmC1KdThCkYT

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS