How can i target punctuation marks when dealing with text

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








up vote
0
down vote

favorite












I want to print a file like this after i saved it as file.fw



nvram set wl0.2_key4=;
nvram set wl0_wds1_ospf=;
nvram set wl0_stbc_tx=auto;
nvram set wl0_ap_isolate=0;
nvram set wl0_ampdu=auto;
nvram set wl0_gmode=1;
nvram set wl0_wme_no_ack=off;


I want to out put this file like for line back to back so i ran



grep -aoE '([a-zA-Z0-9])1,30' file.fw


And i got every word from 1 to 30 characters long so i ran



cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '


And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes



I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols







share|improve this question


























    up vote
    0
    down vote

    favorite












    I want to print a file like this after i saved it as file.fw



    nvram set wl0.2_key4=;
    nvram set wl0_wds1_ospf=;
    nvram set wl0_stbc_tx=auto;
    nvram set wl0_ap_isolate=0;
    nvram set wl0_ampdu=auto;
    nvram set wl0_gmode=1;
    nvram set wl0_wme_no_ack=off;


    I want to out put this file like for line back to back so i ran



    grep -aoE '([a-zA-Z0-9])1,30' file.fw


    And i got every word from 1 to 30 characters long so i ran



    cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '


    And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes



    I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to print a file like this after i saved it as file.fw



      nvram set wl0.2_key4=;
      nvram set wl0_wds1_ospf=;
      nvram set wl0_stbc_tx=auto;
      nvram set wl0_ap_isolate=0;
      nvram set wl0_ampdu=auto;
      nvram set wl0_gmode=1;
      nvram set wl0_wme_no_ack=off;


      I want to out put this file like for line back to back so i ran



      grep -aoE '([a-zA-Z0-9])1,30' file.fw


      And i got every word from 1 to 30 characters long so i ran



      cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '


      And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes



      I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols







      share|improve this question














      I want to print a file like this after i saved it as file.fw



      nvram set wl0.2_key4=;
      nvram set wl0_wds1_ospf=;
      nvram set wl0_stbc_tx=auto;
      nvram set wl0_ap_isolate=0;
      nvram set wl0_ampdu=auto;
      nvram set wl0_gmode=1;
      nvram set wl0_wme_no_ack=off;


      I want to out put this file like for line back to back so i ran



      grep -aoE '([a-zA-Z0-9])1,30' file.fw


      And i got every word from 1 to 30 characters long so i ran



      cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '


      And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes



      I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 29 at 9:36

























      asked May 29 at 9:08









      hello moto

      3851315




      3851315

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1041500%2fhow-can-i-target-punctuation-marks-when-dealing-with-text%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%2faskubuntu.com%2fquestions%2f1041500%2fhow-can-i-target-punctuation-marks-when-dealing-with-text%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?