Community
    • Login

    Find in Files "Keyword" and the following "#" of lines

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Hussam Mahmoud El-MaghrabyH
      Hussam Mahmoud El-Maghraby
      last edited by

      I have this log folder with many files in it naming a server and it’s CPU and Memory status

      I would like to find server name and copy the lines after it

      like follows

      mycomputername in 8/1/2018 @ 0:0:01

      CPU (%) Mem ( %) Disk (GB) Drive Size Free Space Percent Free


      12% 63% D: 100 51.5 52%

      Claudia FrankC Scott SumnerS 2 Replies Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Hussam Mahmoud El-Maghraby
        last edited by

        @Hussam-Mahmoud-El-Maghraby

        not 100% sure I understand what you want to achieve.
        Am I right to assume that the find result window should display all three lines as a single match?
        If so, afaik this doesn’t work - it shows only one line but if you click on that line it will
        open the file with the three lines preselected.

        Or do you have something other in mind?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Scott SumnerS
          Scott Sumner @Hussam Mahmoud El-Maghraby
          last edited by

          @Hussam-Mahmoud-El-Maghraby

          To get good help, you’re probably going to have to show a bit more data. Sure, some ambitious people here could make some guesses (i.e., do a lot of mental work), but why put them thru that?

          Put 4 spaces on the front of every line of data in Notepad++ before copying and pasting here, for best results. If you see a black background on your data in the preview pane as you are composing your post, you are doing it right. Such a black box would look like this:

          I acutally have 4 spaces before the "I", when I was Composed
          Me, too, but before my "M"
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors