Output ONLY lines with specific string

Tool for Search and Replace across multiple files.
Post Reply
User avatar
nkormanik
Posts: 8
Joined: Sat May 27, 2017 12:35 pm

Output ONLY lines with specific string

Post by nkormanik »

I'm attempting to search in just a single large file. I would like to output ONLY lines that contain a particular string.

Example:
Elton John

Output all lines containing "Elton John".

Any suggestions appreciated.

Thanks!

Nicholas Kormanik
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Output ONLY lines with specific string

Post by DigitalVolcano »

The preview window currently just displays the line with the phrase in it if this helps.

Are you wanting to extract the lines?
If you want to extract, try-

Checkmark the setting-
Read Entire File: "Process Line by line"

Regular Expression:
.*Elton John.*

Click 'Extract'.
User avatar
nkormanik
Posts: 8
Joined: Sat May 27, 2017 12:35 pm

Re: Output ONLY lines with specific string

Post by nkormanik »

Super. Thanks for getting back.

Can this be set up as a 'command-line' code, and output to file. So as to be automatic?
Post Reply