| User: Ankur Gondalia -- 2009-11-11 << 356 358 >> |
| Hits: 572 |
| 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 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 shuffle all lines without moving some specified lines? (57%) How to extract all lines that has no leading spaces? (55%) How to find out all files that contain all words of A, B and C? (53%) |
Check Demo of Text file parser |
| Keywords: |
| error avi keyword extracte key containing unmatched unmatch print parse the keyword keyword file lines containing set file list file list 1 1 |