Using sed to replace periods with single spaces to periods with double spaces

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











up vote
0
down vote

favorite












"What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence?"



This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work is
sed 's/. /. /g' userNotes.txt



It works but not I suppose in this context. The error response gives me:



No. That's not it.
For example, your command listed
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
where I was expecting
All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in



which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.



Thank you in advanced.









share







New contributor




Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    "What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence?"



    This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work is
    sed 's/. /. /g' userNotes.txt



    It works but not I suppose in this context. The error response gives me:



    No. That's not it.
    For example, your command listed
    All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
    where I was expecting
    All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in



    which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.



    Thank you in advanced.









    share







    New contributor




    Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      "What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence?"



      This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work is
      sed 's/. /. /g' userNotes.txt



      It works but not I suppose in this context. The error response gives me:



      No. That's not it.
      For example, your command listed
      All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
      where I was expecting
      All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in



      which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.



      Thank you in advanced.









      share







      New contributor




      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      "What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence?"



      This is the question I'm trying to answer using sed, but every attempt I try is wrong. It's possible I'm missing something, but the code I feel should work is
      sed 's/. /. /g' userNotes.txt



      It works but not I suppose in this context. The error response gives me:



      No. That's not it.
      For example, your command listed
      All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in
      where I was expecting
      All sessions have those characteristic three steps. If you are working on a PC where you are the only registered user, you might log in



      which has my two spaces as being too large. It's supposed to be a simple answer, but I don't believe it gets simpler than this. I also cannot use things like [[:space:]], awk, etc. just basic sed edit.



      Thank you in advanced.







      sed replace





      share







      New contributor




      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 mins ago









      Sammy

      1




      1




      New contributor




      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Sammy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          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
          );



          );






          Sammy is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474953%2fusing-sed-to-replace-periods-with-single-spaces-to-periods-with-double-spaces%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Sammy is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Sammy is a new contributor. Be nice, and check out our Code of Conduct.












          Sammy is a new contributor. Be nice, and check out our Code of Conduct.











          Sammy is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474953%2fusing-sed-to-replace-periods-with-single-spaces-to-periods-with-double-spaces%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

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

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?