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: 294
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 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 split a text file into multiple files and take the date as filename? (65%)
How to extract and remove common lines from multiple files? (63%)
How to extract text from many webpage files and form a dabase file? (63%)
How to extract half of lines from a text file randomly? (62%)
How to extract the last non-blank line from multiple text files? (62%)

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