Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

755.Text file parser -- How to extract all lines with more than 30 characters from multiple files?

User: editor -- 2011-03-30          << 754  756 >>
Hits: 2363
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all lines that contain more than 30 characters from multiple files, and save the result to one file?
Input Sample:
FILE1: 
1234567890 
123456789012345678901234567890123 
12345678901234567890 
12345678901234567890123456789012345678 
FILE2: 
12345678901234567890 
123456789012345678901234567890123456789 
Output Sample:
OUTPUT FILE: 
123456789012345678901234567890123 
12345678901234567890123456789012345678 
123456789012345678901234567890123456789 
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 to "Batch Runner" window 
3. click 'Fast Replace' button 
* click 'Add', set 'Search' to: 
 
set 'replace' to: 
 
click 'ok' 
* check option of "Reg exp", "Cross Line" and "Extract" 
4. click "Start", and click "output to single file" button to select an output file, such as output.txt, done! 
 
Note: please use version 2.62 or newer, which supports "output to single file" button.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract all lines longer than 80 characters from a text file? (84%)
How to extract all lines that contain "abc" from multiple files? (74%)
How to extract all lines that has more than 4 columns from csv file? (70%)
How to extract all lines with numbers from many text files? (69%)
How to extract all lines whose line numbers are multiple of 3? (69%)
How to delete all lines with column B greater than 90 in multiple csv files? (68%)
How to extract last 100 lines from multiple files? (67%)
How to extract first 55 characters form multiple .txt.files? (67%)

Check Demo of Text file parser
Keywords:
more than  support  how to extract all lines with  extract all lines with  extract all lines  output to single file  extract all line  cross line  result  version  extract lines more than  more than characters  extract all lines characters  extract lines that contain  extract characters  extract multiple lines of text from multiple text files  extract lines from multiple files  extract text lines from multiple files