Page 1 of 1

Output ONLY lines with specific string

Posted: Tue Jan 14, 2020 9:58 am
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

Re: Output ONLY lines with specific string

Posted: Tue Jan 14, 2020 10:08 am
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'.

Re: Output ONLY lines with specific string

Posted: Wed Jan 15, 2020 12:15 pm
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?