Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

838.Text file parser -- How to extract first line from multiple files and generate a new file?

User: editor -- 2011-08-19          << 837  839 >>
Hits: 4653
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract first line from multiple files and generate a new file?
Input Sample:
File1: 
a1 
a2 
... 
File2: 
b1 
b2 
... 
File3: 
c1 
c2 
...
Output Sample:
Generate a new file: 
a1 
b1 
c1 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu 
2. drag and drop multiple files from Windows File Browser to "Batch Runner" window 
3. click 'Fast Replace' button, and click 'Add' to add a new rule 
* set 'search' to: 
 
* set 'replace' to: 
 
click 'ok' 
4. check option of 'reg exp' and 'extract' 
5. click 'start' 
6. click 'output to single file' button, and select an output file name, done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract last 100 lines from multiple files? (69%)
How to extract multiple fields from data file and create a csv file? (68%)
How to extract and join text from multiple files with user defined format? (68%)
How to extract all http links from multiple web sites in one time? (66%)
How to extract all http links from multiple web sites in one time? (66%)
How to extract info from xml value and generate a new format text? (65%)
How to split a text file into multiple files and take the date as filename? (65%)
How to get the values from all lines of txt file and generate html files? (64%)

Check Demo of Text file parser
Keywords:
extract first line from multiple files  how to extract first line from multiple files  extract first line  extract first  output to single file  single  single file  generate  rule  first line  extract first line multiple files  extract first line from file  generate multiple files  file name to first line  first line file name  first line name  first line to file name  add first line