single long line searching The 2019 Stack Overflow Developer Survey Results Are In ...

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

How to test the equality of two Pearson correlation coefficients computed from the same sample?

Did God make two great lights or did He make the great light two?

Can a novice safely splice in wire to lengthen 5V charging cable?

How do I add random spotting to the same face in cycles?

Is this wall load bearing? Blueprints and photos attached

What is special about square numbers here?

How is simplicity better than precision and clarity in prose?

Can smartphones with the same camera sensor have different image quality?

Who or what is the being for whom Being is a question for Heidegger?

What are these Gizmos at Izaña Atmospheric Research Center in Spain?

Take groceries in checked luggage

Why not take a picture of a closer black hole?

How did passengers keep warm on sail ships?

Windows 10: How to Lock (not sleep) laptop on lid close?

Segmentation fault output is suppressed when piping stdin into a function. Why?

How does this infinite series simplify to an integral?

Why can't wing-mounted spoilers be used to steepen approaches?

Are spiders unable to hurt humans, especially very small spiders?

Didn't get enough time to take a Coding Test - what to do now?

Can a 1st-level character have an ability score above 18?

Why is superheterodyning better than direct conversion?

How are presidential pardons supposed to be used?

Is there a writing software that you can sort scenes like slides in PowerPoint?



single long line searching



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionawk one single lineString pattern searchingSearching out a pattern from LogsConvert multilines to single lineGrep on single linegrep syntax for searching strings with single-quotes?Searching for only single words in UnixUsing 'find' then searching each line for two values in bash scriptsearching letters in one line using grep and wcgrep stringset as a single line





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have a large document that is only 1 line, it spans multiple pages of vi.



Below is an extract of a small bit, I'm seeking to show text after aria-label="



I would then like to stop at aria-selected=



This would repeat many times along that single line and might contain more than one name.



I wondered about breaking the file up in to multiple lines with aria-label= as the line break marker and then grepping the lines.



There is always going to be a number after the aria-label= so that might help remove other matches?



style="background-color: #0B8043;"></div>Spike Bird</div></div></div></div></div></div></div></div></div><div role="rowgroup"><div role="row"><div id="docs-revisions-sidebar-date-group-1551364837014" class="docs-revisions-sidebar-date-group" role="heading">February</div></div><div class="docs-revisions-collapsible-pane" role="presentation"><div class="docs-revisions-collapsible-pane-milestone-tile-container" role="presentation"><div class="docs-revisions-tile" role="row" aria-level="1" aria-expanded="false" id=":oj" aria-label="28 February, 14:40 Joe Bloggs" aria-selected="false"><div class="docs-revisions-tile-content-wrapper" role="presentation"><div class="docs-revisions-tile-header" role="gridcell"><div class="docs-revisions-icon docs-revisions-tile-arrow-button" data-tooltip="Expand detailed versions" aria-label="Expand detailed versions" data-tooltip-offset="-3" data-tooltip-unhoverable="true" role="button" aria-expanded="false" style="user-select: none;"><div class="docs-revisions-icon-img-mask"><div class="docs-revisions-icon-img docs-revisions-icon-arrow"></div></div></div><textarea class="docs-revisions-tile-text-box docs-revisions-tile-text-box-disabled" id=":og" spellcheck="false" rows="1" maxlength="80"  









share|improve this question




















  • 2





    Is the document a well formed XML document?

    – Kusalananda
    Mar 20 at 10:13


















0















I have a large document that is only 1 line, it spans multiple pages of vi.



Below is an extract of a small bit, I'm seeking to show text after aria-label="



I would then like to stop at aria-selected=



This would repeat many times along that single line and might contain more than one name.



I wondered about breaking the file up in to multiple lines with aria-label= as the line break marker and then grepping the lines.



There is always going to be a number after the aria-label= so that might help remove other matches?



style="background-color: #0B8043;"></div>Spike Bird</div></div></div></div></div></div></div></div></div><div role="rowgroup"><div role="row"><div id="docs-revisions-sidebar-date-group-1551364837014" class="docs-revisions-sidebar-date-group" role="heading">February</div></div><div class="docs-revisions-collapsible-pane" role="presentation"><div class="docs-revisions-collapsible-pane-milestone-tile-container" role="presentation"><div class="docs-revisions-tile" role="row" aria-level="1" aria-expanded="false" id=":oj" aria-label="28 February, 14:40 Joe Bloggs" aria-selected="false"><div class="docs-revisions-tile-content-wrapper" role="presentation"><div class="docs-revisions-tile-header" role="gridcell"><div class="docs-revisions-icon docs-revisions-tile-arrow-button" data-tooltip="Expand detailed versions" aria-label="Expand detailed versions" data-tooltip-offset="-3" data-tooltip-unhoverable="true" role="button" aria-expanded="false" style="user-select: none;"><div class="docs-revisions-icon-img-mask"><div class="docs-revisions-icon-img docs-revisions-icon-arrow"></div></div></div><textarea class="docs-revisions-tile-text-box docs-revisions-tile-text-box-disabled" id=":og" spellcheck="false" rows="1" maxlength="80"  









share|improve this question




















  • 2





    Is the document a well formed XML document?

    – Kusalananda
    Mar 20 at 10:13














0












0








0








I have a large document that is only 1 line, it spans multiple pages of vi.



Below is an extract of a small bit, I'm seeking to show text after aria-label="



I would then like to stop at aria-selected=



This would repeat many times along that single line and might contain more than one name.



I wondered about breaking the file up in to multiple lines with aria-label= as the line break marker and then grepping the lines.



There is always going to be a number after the aria-label= so that might help remove other matches?



style="background-color: #0B8043;"></div>Spike Bird</div></div></div></div></div></div></div></div></div><div role="rowgroup"><div role="row"><div id="docs-revisions-sidebar-date-group-1551364837014" class="docs-revisions-sidebar-date-group" role="heading">February</div></div><div class="docs-revisions-collapsible-pane" role="presentation"><div class="docs-revisions-collapsible-pane-milestone-tile-container" role="presentation"><div class="docs-revisions-tile" role="row" aria-level="1" aria-expanded="false" id=":oj" aria-label="28 February, 14:40 Joe Bloggs" aria-selected="false"><div class="docs-revisions-tile-content-wrapper" role="presentation"><div class="docs-revisions-tile-header" role="gridcell"><div class="docs-revisions-icon docs-revisions-tile-arrow-button" data-tooltip="Expand detailed versions" aria-label="Expand detailed versions" data-tooltip-offset="-3" data-tooltip-unhoverable="true" role="button" aria-expanded="false" style="user-select: none;"><div class="docs-revisions-icon-img-mask"><div class="docs-revisions-icon-img docs-revisions-icon-arrow"></div></div></div><textarea class="docs-revisions-tile-text-box docs-revisions-tile-text-box-disabled" id=":og" spellcheck="false" rows="1" maxlength="80"  









share|improve this question
















I have a large document that is only 1 line, it spans multiple pages of vi.



Below is an extract of a small bit, I'm seeking to show text after aria-label="



I would then like to stop at aria-selected=



This would repeat many times along that single line and might contain more than one name.



I wondered about breaking the file up in to multiple lines with aria-label= as the line break marker and then grepping the lines.



There is always going to be a number after the aria-label= so that might help remove other matches?



style="background-color: #0B8043;"></div>Spike Bird</div></div></div></div></div></div></div></div></div><div role="rowgroup"><div role="row"><div id="docs-revisions-sidebar-date-group-1551364837014" class="docs-revisions-sidebar-date-group" role="heading">February</div></div><div class="docs-revisions-collapsible-pane" role="presentation"><div class="docs-revisions-collapsible-pane-milestone-tile-container" role="presentation"><div class="docs-revisions-tile" role="row" aria-level="1" aria-expanded="false" id=":oj" aria-label="28 February, 14:40 Joe Bloggs" aria-selected="false"><div class="docs-revisions-tile-content-wrapper" role="presentation"><div class="docs-revisions-tile-header" role="gridcell"><div class="docs-revisions-icon docs-revisions-tile-arrow-button" data-tooltip="Expand detailed versions" aria-label="Expand detailed versions" data-tooltip-offset="-3" data-tooltip-unhoverable="true" role="button" aria-expanded="false" style="user-select: none;"><div class="docs-revisions-icon-img-mask"><div class="docs-revisions-icon-img docs-revisions-icon-arrow"></div></div></div><textarea class="docs-revisions-tile-text-box docs-revisions-tile-text-box-disabled" id=":og" spellcheck="false" rows="1" maxlength="80"  






awk grep






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 4 mins ago









Rui F Ribeiro

42.1k1483142




42.1k1483142










asked Mar 20 at 10:10









Terry Bradford StaffTerry Bradford Staff

1




1








  • 2





    Is the document a well formed XML document?

    – Kusalananda
    Mar 20 at 10:13














  • 2





    Is the document a well formed XML document?

    – Kusalananda
    Mar 20 at 10:13








2




2





Is the document a well formed XML document?

– Kusalananda
Mar 20 at 10:13





Is the document a well formed XML document?

– Kusalananda
Mar 20 at 10:13










1 Answer
1






active

oldest

votes


















0














Try this,



grep -Po '(?<=(aria-label=")).*(?=" aria-selected=)' file


it prints the value between aria-label=" and " aria-selected=






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f507387%2fsingle-long-line-searching%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














    Try this,



    grep -Po '(?<=(aria-label=")).*(?=" aria-selected=)' file


    it prints the value between aria-label=" and " aria-selected=






    share|improve this answer






























      0














      Try this,



      grep -Po '(?<=(aria-label=")).*(?=" aria-selected=)' file


      it prints the value between aria-label=" and " aria-selected=






      share|improve this answer




























        0












        0








        0







        Try this,



        grep -Po '(?<=(aria-label=")).*(?=" aria-selected=)' file


        it prints the value between aria-label=" and " aria-selected=






        share|improve this answer















        Try this,



        grep -Po '(?<=(aria-label=")).*(?=" aria-selected=)' file


        it prints the value between aria-label=" and " aria-selected=







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 20 at 10:48

























        answered Mar 20 at 10:27









        msp9011msp9011

        4,60344167




        4,60344167






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f507387%2fsingle-long-line-searching%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

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m