select all but #7342
-
I have a file and want to delete all lines that do not contain a keyword. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Ah, I've found a way:
Let me know if there is a better way. |
Beta Was this translation helpful? Give feedback.
-
Let's say you want to keep all lines with "foo". Select whole file ("%"), pipe to grep: |
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
I am using Helix 24.7 and ALT-K no longer seems to do anything? |
Beta Was this translation helpful? Give feedback.
You can use
A-K
to remove selections that match a regex so%A-sA-K<word><ret>d
does what you want (select entire file, split selection into lines, remove selections that contain regex/word, delete