adding new line with text at the bottom of every opened files in notepad++?












1














I want to add text at the bottom of every opened file (as a extra line) in notepad++. I know how to add at beginning of the file.



Find what:- (?s).*
Replace with:- YOUR TEXTrn$0



which helps me more. but don't know how to add (new line with text) at the bottom.



"text hello friend"
"text hello friend"


should be changed with new line added at the bottom. like



"text hello friend"
"text hello friend"
**"text do not sin friend"**


Note "text do not sin friend" need to be added as new line in multiple files.



How can I do this?










share|improve this question





























    1














    I want to add text at the bottom of every opened file (as a extra line) in notepad++. I know how to add at beginning of the file.



    Find what:- (?s).*
    Replace with:- YOUR TEXTrn$0



    which helps me more. but don't know how to add (new line with text) at the bottom.



    "text hello friend"
    "text hello friend"


    should be changed with new line added at the bottom. like



    "text hello friend"
    "text hello friend"
    **"text do not sin friend"**


    Note "text do not sin friend" need to be added as new line in multiple files.



    How can I do this?










    share|improve this question



























      1












      1








      1







      I want to add text at the bottom of every opened file (as a extra line) in notepad++. I know how to add at beginning of the file.



      Find what:- (?s).*
      Replace with:- YOUR TEXTrn$0



      which helps me more. but don't know how to add (new line with text) at the bottom.



      "text hello friend"
      "text hello friend"


      should be changed with new line added at the bottom. like



      "text hello friend"
      "text hello friend"
      **"text do not sin friend"**


      Note "text do not sin friend" need to be added as new line in multiple files.



      How can I do this?










      share|improve this question















      I want to add text at the bottom of every opened file (as a extra line) in notepad++. I know how to add at beginning of the file.



      Find what:- (?s).*
      Replace with:- YOUR TEXTrn$0



      which helps me more. but don't know how to add (new line with text) at the bottom.



      "text hello friend"
      "text hello friend"


      should be changed with new line added at the bottom. like



      "text hello friend"
      "text hello friend"
      **"text do not sin friend"**


      Note "text do not sin friend" need to be added as new line in multiple files.



      How can I do this?







      notepad++ newlines






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 7 '17 at 14:20









      DavidPostill

      103k25223257




      103k25223257










      asked Jan 7 '17 at 14:00









      Abd

      3926




      3926






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I want to add text at the bottom of every opened file (as a extra line) in notepad++




          • Menu "Search" > "Replace" (or Ctrl + H)


          • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.


          • Set "Replace with" to 1rn**"text do not sin friend"**


          • Enable "Regular expression" and "matches newline"


          • Click "Replace All"



          Notes:




          • The above assumes a file with Windows EOLs rn


          • Use n instead of rn for Unix/OS X EOLs



          • Use r instead of rn for Mac OS (up to version 9) EOLs



            Image




          Before:



          "text hello friend"
          "text hello friend"


          After:



          "text hello friend"
          "text hello friend"
          **"text do not sin friend"**




          Further reading




          • How to use regular expressions in Notepad++ (tutorial)

          • Notepad++: A guide to using regular expressions and extended search mode

          • Regular Expressions Tutorial

          • RegExr: Learn, Build, & Test RegEx

          • regex101: Online regex tester and debugger

          • RegExper: Regular Expression Visualiser






          share|improve this answer





















          • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
            – Abd
            Jan 7 '17 at 16:25











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1164480%2fadding-new-line-with-text-at-the-bottom-of-every-opened-files-in-notepad%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I want to add text at the bottom of every opened file (as a extra line) in notepad++




          • Menu "Search" > "Replace" (or Ctrl + H)


          • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.


          • Set "Replace with" to 1rn**"text do not sin friend"**


          • Enable "Regular expression" and "matches newline"


          • Click "Replace All"



          Notes:




          • The above assumes a file with Windows EOLs rn


          • Use n instead of rn for Unix/OS X EOLs



          • Use r instead of rn for Mac OS (up to version 9) EOLs



            Image




          Before:



          "text hello friend"
          "text hello friend"


          After:



          "text hello friend"
          "text hello friend"
          **"text do not sin friend"**




          Further reading




          • How to use regular expressions in Notepad++ (tutorial)

          • Notepad++: A guide to using regular expressions and extended search mode

          • Regular Expressions Tutorial

          • RegExr: Learn, Build, & Test RegEx

          • regex101: Online regex tester and debugger

          • RegExper: Regular Expression Visualiser






          share|improve this answer





















          • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
            – Abd
            Jan 7 '17 at 16:25
















          0














          I want to add text at the bottom of every opened file (as a extra line) in notepad++




          • Menu "Search" > "Replace" (or Ctrl + H)


          • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.


          • Set "Replace with" to 1rn**"text do not sin friend"**


          • Enable "Regular expression" and "matches newline"


          • Click "Replace All"



          Notes:




          • The above assumes a file with Windows EOLs rn


          • Use n instead of rn for Unix/OS X EOLs



          • Use r instead of rn for Mac OS (up to version 9) EOLs



            Image




          Before:



          "text hello friend"
          "text hello friend"


          After:



          "text hello friend"
          "text hello friend"
          **"text do not sin friend"**




          Further reading




          • How to use regular expressions in Notepad++ (tutorial)

          • Notepad++: A guide to using regular expressions and extended search mode

          • Regular Expressions Tutorial

          • RegExr: Learn, Build, & Test RegEx

          • regex101: Online regex tester and debugger

          • RegExper: Regular Expression Visualiser






          share|improve this answer





















          • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
            – Abd
            Jan 7 '17 at 16:25














          0












          0








          0






          I want to add text at the bottom of every opened file (as a extra line) in notepad++




          • Menu "Search" > "Replace" (or Ctrl + H)


          • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.


          • Set "Replace with" to 1rn**"text do not sin friend"**


          • Enable "Regular expression" and "matches newline"


          • Click "Replace All"



          Notes:




          • The above assumes a file with Windows EOLs rn


          • Use n instead of rn for Unix/OS X EOLs



          • Use r instead of rn for Mac OS (up to version 9) EOLs



            Image




          Before:



          "text hello friend"
          "text hello friend"


          After:



          "text hello friend"
          "text hello friend"
          **"text do not sin friend"**




          Further reading




          • How to use regular expressions in Notepad++ (tutorial)

          • Notepad++: A guide to using regular expressions and extended search mode

          • Regular Expressions Tutorial

          • RegExr: Learn, Build, & Test RegEx

          • regex101: Online regex tester and debugger

          • RegExper: Regular Expression Visualiser






          share|improve this answer












          I want to add text at the bottom of every opened file (as a extra line) in notepad++




          • Menu "Search" > "Replace" (or Ctrl + H)


          • Set "Find what" to (.*+) - This regular expression selects the whole file, when "matches newline" is enabled.


          • Set "Replace with" to 1rn**"text do not sin friend"**


          • Enable "Regular expression" and "matches newline"


          • Click "Replace All"



          Notes:




          • The above assumes a file with Windows EOLs rn


          • Use n instead of rn for Unix/OS X EOLs



          • Use r instead of rn for Mac OS (up to version 9) EOLs



            Image




          Before:



          "text hello friend"
          "text hello friend"


          After:



          "text hello friend"
          "text hello friend"
          **"text do not sin friend"**




          Further reading




          • How to use regular expressions in Notepad++ (tutorial)

          • Notepad++: A guide to using regular expressions and extended search mode

          • Regular Expressions Tutorial

          • RegExr: Learn, Build, & Test RegEx

          • regex101: Online regex tester and debugger

          • RegExper: Regular Expression Visualiser







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 7 '17 at 14:45









          DavidPostill

          103k25223257




          103k25223257












          • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
            – Abd
            Jan 7 '17 at 16:25


















          • it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
            – Abd
            Jan 7 '17 at 16:25
















          it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
          – Abd
          Jan 7 '17 at 16:25




          it works. you are great. !!!!!!!!!---- thank you so much---!!!!!!!!!.
          – Abd
          Jan 7 '17 at 16:25


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1164480%2fadding-new-line-with-text-at-the-bottom-of-every-opened-files-in-notepad%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AnyDesk - Fatal Program Failure

          How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

          QoS: MAC-Priority for clients behind a repeater