fix slapcat 79 character line wrap in output

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











up vote
0
down vote

favorite












I use slapcat to do a full-text search in our very large ldap directory.
As it is easier to match what I am looking for when I don't know where to look.



The problem is that it wraps long lines



slapcat -v | grep -A 1 "some search string"
somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
wraps like this






share|improve this question
























    up vote
    0
    down vote

    favorite












    I use slapcat to do a full-text search in our very large ldap directory.
    As it is easier to match what I am looking for when I don't know where to look.



    The problem is that it wraps long lines



    slapcat -v | grep -A 1 "some search string"
    somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
    wraps like this






    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I use slapcat to do a full-text search in our very large ldap directory.
      As it is easier to match what I am looking for when I don't know where to look.



      The problem is that it wraps long lines



      slapcat -v | grep -A 1 "some search string"
      somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
      wraps like this






      share|improve this question












      I use slapcat to do a full-text search in our very large ldap directory.
      As it is easier to match what I am looking for when I don't know where to look.



      The problem is that it wraps long lines



      slapcat -v | grep -A 1 "some search string"
      somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321
      wraps like this








      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 27 at 12:02









      nelaaro

      5402614




      5402614




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760



          This matches line ending n followed by a and joins the lines.



          slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
          somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this





          share|improve this answer




















            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%2f426919%2ffix-slapcat-79-character-line-wrap-in-output%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760



            This matches line ending n followed by a and joins the lines.



            slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
            somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this





            share|improve this answer
























              up vote
              0
              down vote













              I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760



              This matches line ending n followed by a and joins the lines.



              slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
              somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760



                This matches line ending n followed by a and joins the lines.



                slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
                somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this





                share|improve this answer












                I found a solution to this from this answer https://stackoverflow.com/a/10002241/619760



                This matches line ending n followed by a and joins the lines.



                slapcat -v | grep -A 1 "some search string" | sed '$!N;s/n //;P;D'
                somelongvar::linesoftesttext12345667890987654321234567887654321234567897654321wraps like this






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 27 at 12:02









                nelaaro

                5402614




                5402614






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426919%2ffix-slapcat-79-character-line-wrap-in-output%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)