• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
3 Posts 3 Posters 1.2k 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.
  • H
    Hussam Mahmoud El-Maghraby
    last edited by Aug 31, 2018, 6:57 AM

    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%

    C S 2 Replies Last reply Aug 31, 2018, 12:32 PM Reply Quote 0
    • C
      Claudia Frank @Hussam Mahmoud El-Maghraby
      last edited by Aug 31, 2018, 12:32 PM

      @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
      • S
        Scott Sumner @Hussam Mahmoud El-Maghraby
        last edited by Aug 31, 2018, 12:36 PM

        @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
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors