User: Ankur Gondalia -- 2009-11-11 << 356 358 >> |
Hits: 4787 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
I just want to list out all the lines which has having cretin keyword. |
Input Sample: |
This is test line 1 This is error #1 This is test line 2 This is error #2 This is test line 3 This is error #3 This is test line 4 This is error #4 |
Output Sample: |
looking for "error" as keyword This is error #1 This is error #2 This is error #3 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open source file 2. ctrl-h open "Replace" dialog * select "Replace Unit" to "Line" * set "Search for Pattern" to: * set "Replace with Pattern" to: * uncheck the option of "Print Unmatched Unit" 3. click "Replace", all lines that containing "error" will be extracted. |
Download Script: scripts/357.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
How to sort all lines of text by specified keyword? (72%) How to extract all lines that contain specified words or phrases? (63%) How to rip out all but line 1 and specified text? (63%) How to filter out all web pages that does not contain specified words? (63%) How to findout all lines that contain specified words in multiple files? (63%) How to find out all lines that appeared specified number of times? (62%) How to extract all sentences that contain specified words? (61%) How to filter out the duplicate number after the specified keywords? (59%) |
Check Demo of Text file parser |
Keywords: |
error avi keyword extracte key containing unmatched unmatch specified print containing keyword the keyword keyword file select specified lines containing open source file parser set file list file list |