FINDSTR: Line is too longWhy does this 'findstr' command not function as expected?Use Batch findstr for files...

How much mayhem could I cause as a sentient fish?

How do you funnel food off a cutting board?

Why is Agricola named as such?

Removing disk while game is suspended

Why don't hotels mount air conditioning units outside the rooms?

How can my powered armor quickly replace its ceramic plates?

When can a QA tester start his job?

Odd 74HCT1G125 behaviour

Why am I able to open Wireshark and capture packets in macOS without root privileges?

Using only 1s, make 29 with the minimum number of digits

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?

How to make ice magic work from a scientific point of view?

How do I append a character to the end of every line in an Excel cell?

What is the difference between rolling more dice versus fewer dice?

Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?

A Missing Symbol for This Logo

Can I make estimated tax payments instead of withholding from my paycheck?

Can a hotel cancel a confirmed reservation?

Is a new Boolean field better than a null reference when a value can be meaningfully absent?

Salesforce package error error “You can't specify version for namespace sf_com_apps because this namespace is not installed to your organization.”

Is there any risk in sharing info about technologies and products we use with a supplier?

What are the exceptions to Natural Selection?

Is boss over stepping boundary/micromanaging?



FINDSTR: Line is too long


Why does this 'findstr' command not function as expected?Use Batch findstr for files with whitespacesUse findstr to output characters 1-13findstr DOS Command's multiple string argumentGet URL from HTML file using FindStrHow to use FINDSTR to search in a specific line?Copy /b and Findstr /vBatch script with findstr & “line to long”How to show event logs containing specific text from powershellfindstr search including return character













2















Windows FINDSTR command is useful for sifting through large amounts of data; it filters out lines of text that don't contain a specified pattern or string (like GNU/BSD grep).



But it refuses to output lines greater than a certain length. Is there a (native) alternative, fix, or workaround?










share|improve this question














bumped to the homepage by Community 17 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

    – Harry
    Nov 12 '17 at 19:21
















2















Windows FINDSTR command is useful for sifting through large amounts of data; it filters out lines of text that don't contain a specified pattern or string (like GNU/BSD grep).



But it refuses to output lines greater than a certain length. Is there a (native) alternative, fix, or workaround?










share|improve this question














bumped to the homepage by Community 17 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

    – Harry
    Nov 12 '17 at 19:21














2












2








2








Windows FINDSTR command is useful for sifting through large amounts of data; it filters out lines of text that don't contain a specified pattern or string (like GNU/BSD grep).



But it refuses to output lines greater than a certain length. Is there a (native) alternative, fix, or workaround?










share|improve this question














Windows FINDSTR command is useful for sifting through large amounts of data; it filters out lines of text that don't contain a specified pattern or string (like GNU/BSD grep).



But it refuses to output lines greater than a certain length. Is there a (native) alternative, fix, or workaround?







windows-7 windows command-line findstr text-manipulation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '17 at 17:34









tjt263tjt263

1,41621335




1,41621335





bumped to the homepage by Community 17 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 17 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

    – Harry
    Nov 12 '17 at 19:21



















  • interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

    – Harry
    Nov 12 '17 at 19:21

















interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

– Harry
Nov 12 '17 at 19:21





interact-sw.co.uk/iangblog/2006/06/03/pshfindstr

– Harry
Nov 12 '17 at 19:21










1 Answer
1






active

oldest

votes


















0














SS64's FINDSTR - Escapes and Length limits says:




Line Length limits



Files specified as a command line argument or via the /F:FILE option have no known line length limit. Searches were successfully run against a 128MB file that did not contain a single <LF>.



Piped data and Redirected input is limited to 8191 bytes per line. This limit is a "feature" of FINDSTR. It is not inherent to pipes or redirection. FINDSTR using redirected stdin or piped input will never match any line that is >=8k bytes. Lines >= 8k generate an error message to stderr, but ERRORLEVEL is still 0 if the search string is found in at least one line of at least one file.



Credits:

Dave Benham - List of undocumented features and limitations of FINDSTR from StackOverflow







share|improve this answer

























    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%2f1267694%2ffindstr-line-is-too-long%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














    SS64's FINDSTR - Escapes and Length limits says:




    Line Length limits



    Files specified as a command line argument or via the /F:FILE option have no known line length limit. Searches were successfully run against a 128MB file that did not contain a single <LF>.



    Piped data and Redirected input is limited to 8191 bytes per line. This limit is a "feature" of FINDSTR. It is not inherent to pipes or redirection. FINDSTR using redirected stdin or piped input will never match any line that is >=8k bytes. Lines >= 8k generate an error message to stderr, but ERRORLEVEL is still 0 if the search string is found in at least one line of at least one file.



    Credits:

    Dave Benham - List of undocumented features and limitations of FINDSTR from StackOverflow







    share|improve this answer






























      0














      SS64's FINDSTR - Escapes and Length limits says:




      Line Length limits



      Files specified as a command line argument or via the /F:FILE option have no known line length limit. Searches were successfully run against a 128MB file that did not contain a single <LF>.



      Piped data and Redirected input is limited to 8191 bytes per line. This limit is a "feature" of FINDSTR. It is not inherent to pipes or redirection. FINDSTR using redirected stdin or piped input will never match any line that is >=8k bytes. Lines >= 8k generate an error message to stderr, but ERRORLEVEL is still 0 if the search string is found in at least one line of at least one file.



      Credits:

      Dave Benham - List of undocumented features and limitations of FINDSTR from StackOverflow







      share|improve this answer




























        0












        0








        0







        SS64's FINDSTR - Escapes and Length limits says:




        Line Length limits



        Files specified as a command line argument or via the /F:FILE option have no known line length limit. Searches were successfully run against a 128MB file that did not contain a single <LF>.



        Piped data and Redirected input is limited to 8191 bytes per line. This limit is a "feature" of FINDSTR. It is not inherent to pipes or redirection. FINDSTR using redirected stdin or piped input will never match any line that is >=8k bytes. Lines >= 8k generate an error message to stderr, but ERRORLEVEL is still 0 if the search string is found in at least one line of at least one file.



        Credits:

        Dave Benham - List of undocumented features and limitations of FINDSTR from StackOverflow







        share|improve this answer















        SS64's FINDSTR - Escapes and Length limits says:




        Line Length limits



        Files specified as a command line argument or via the /F:FILE option have no known line length limit. Searches were successfully run against a 128MB file that did not contain a single <LF>.



        Piped data and Redirected input is limited to 8191 bytes per line. This limit is a "feature" of FINDSTR. It is not inherent to pipes or redirection. FINDSTR using redirected stdin or piped input will never match any line that is >=8k bytes. Lines >= 8k generate an error message to stderr, but ERRORLEVEL is still 0 if the search string is found in at least one line of at least one file.



        Credits:

        Dave Benham - List of undocumented features and limitations of FINDSTR from StackOverflow








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 12 '17 at 21:10

























        answered Nov 12 '17 at 18:19









        Gerold BroserGerold Broser

        281218




        281218






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1267694%2ffindstr-line-is-too-long%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

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

            looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...