N
N
nalimite2017-09-17 10:15:53
Notepad++
nalimite, 2017-09-17 10:15:53

How to find all lines from a huge text file?

Good time!
Interested in the question of whether it is possible through Notepad ++ to pull out all the lines from the file.
More:
There is a file with a bunch of lines, prntscr.com/gm4qao , is it possible to somehow automatically extract all lines of this type from it:
prntscr.com/gm4qgy
Let's say, search for a line using the text "has been killed by player" and capture two more lines above this one.
Is this possible in Notepad++ ?

Original text
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::2400 B::3760 H::2644 HP::0."
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into LeftArm."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::2800 B::3560 H::2444 HP::0."
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into LeftArm."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::3200 B::3360 H::2244 HP::0."
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into LeftArm."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::3600 B::3160 H::2044 HP::0."
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into LeftArm."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::4000 B::2960 H::1844 HP::0."
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into Chest."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::5600 B::2160 H::1044 HP::0."
10:39:01 | Player "ZhanBadon"(id=76561198052927778) has been killed by player "MS-13"(id=76561198295194400)
10:40:32 | Player "резкий" is connected (id=76561198284058642)
10:41:00 | Player "Kristinka" is connected (id=76561198143161002)
10:41:06 | Player "User (3)"(id=76561198261570551) has been disconnected
10:42:58 | Player "RedFox"(id=76561198172633497) has been disconnected
10:43:11 | Player "Locoste" is connected (id=76561198052295103)
10:43:33 | Player "WinSlav" is connected (id=76561198262950689)
10:44:20 | Player "lebonwski"(id=76561198365434881) has been disconnected
10:44:22 | Player "User (2)"(id=76561198328354795) has been disconnected
10:44:22 | Player "vasia1337"(id=76561198279062203) has been disconnected
10:44:38 | Player "MS-13"(id=76561198295194400) has been disconnected
Need to snatch
10:39:01 | "MS-13(uid=76561198295194400) SHOT ZhanBadon(uid=76561198052927778) by ShotgunIzh43 into Chest."
10:39:01 | "ZhanBadon(uid=76561198052927778) STATUS S::5600 B::2160 H::1044 HP::0."
10:39:01 | Player "ZhanBadon"(id=76561198052927778) has been killed by player "MS-13"(id=76561198295194400)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2017-09-17
@daaner

Write a macro in Word and there will be happiness

D
Dimonchik, 2017-09-17
@dimonchik2013

with "two lines above" won't work, only a script/macro is needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question