Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

781.Text file parser -- How to extract all lines with numbers from many text files?

User: editor -- 2011-05-18          << 780  782 >>
Hits: 3999
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all lines with numbers from many text files, and write the result to a single file?
Input Sample:
this line has no number 
this line has number 123 
has number 333 
no number 
...
Output Sample:
this line has number 123 
has number 333 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" window 
2. drag multiple text files from windows file browser to "Batch Runner" window 
3. click "Fast Replace" button 
* click "Add" button 
set "Search" to: 
 
set "Replace" to: 
 
click "ok" 
* uncheck option of "Cross Line", check option of "Reg Exp" and "Extract" 
* click "Start" button 
* select "output to single file" button, and enter output filename, all lines will be output to the file.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract all telephone numbers from a text file? (84%)
How to extract all email addresses from many text files? (80%)
How to extract all the links and images from many web page files? (79%)
How to extract multiple lines in specified order from many text files? (76%)
How to extract all lines with specified date range from text file? (73%)
How to extract all lines longer than 80 characters from a text file? (73%)
How to extract all lines whose line numbers are multiple of 3? (71%)
How to extract all html address from a text file? (71%)

Check Demo of Text file parser
Keywords:
extract all lines with numbers  write  how to extract all lines with  extract all lines with  extract all lines  output to single file  extract all line  cross line  with numbers  result  extract lines from text file numbers  extract numbers from a text file  extract text and numbers  write lines  extract lines from all text files windows  extract lines of text from file windows  extract lines of text windows  extract multiple lines windows