Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

685.Text data calculation -- How to take every line from file A and file B and calculate summary?

User: editor -- 2010-12-28          << 684  686 >>
Hits: 347
Type: Text data calculation   
Search all Text data calculation examples
Description:
How to take every line from file A and file B and calculate summary?
Input Sample:
file a.txt:
1
2
3
4
5
6
file b.txt
2
4
6
8
10
12
Output Sample:
file c.txt:
3
6
9
12
15
18
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume file b.txt is located in d:\new\ folder.
1. ctrl-o open a.txt
2. ctrl-h open replace window
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

* click 'advanced' page, set 'run following at the beginning of replace' to:

3. click 'replace', done.
4. ctrl-s save to file c.txt

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to delete all lines appear in file B from file A? (56%)
How to split every file in a directory automatically? (54%)
How to sort all the lines of a text file by order the multiple columns? (52%)
How to convert many html files to text files all at once? (52%)
How to reverse a text file by characters? (52%)
How to extract first line from multiple files and generate a new file? (51%)
How to calculate the summaries of every line in a txt file? (51%)
How to batch rename files with the first line of file content as new file name? (51%)

Check Demo of Text data calculation
Keywords:
summary  toc  calculate  import  calculation  calcu  new folder  every line  values  every  calculate the take every  beginning of line  beginning line  line data  replace line data  replace every  replace with data  data replace