Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    3 貼文 3 Posters 1.3k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Hussam Mahmoud El-MaghrabyH
      Hussam Mahmoud El-Maghraby
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Hussam Mahmoud El-Maghraby
        最後由 編輯

        @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 條回覆 最後回覆 回覆 引用 1
        • Scott SumnerS
          Scott Sumner @Hussam Mahmoud El-Maghraby
          最後由 編輯

          @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 條回覆 最後回覆 回覆 引用 1
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors