Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

679.Text data calculation -- How to calculate the summary of all numbers in multiple files?

User: editor -- 2010-12-19          << 678  680 >>
Hits: 3795
Type: Text data calculation   
Search all Text data calculation examples
Description:
How to calculate the summary of all numbers in multiple files?
Input Sample:
file1.txt: 
 13002 
 256 
file2.txt: 
 14310 
 14310 
file3.txt: 
...
Output Sample:
output.txt: 
file1 13258 
file2 28620 
file3 ... 
...
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. set "output filename" to "output.txt" 
4. click "Fast Replace" button 
5. click "Add", set "Search" to:  
set "Replace" to:  
 
click "OK" 
6. set "Write Mode" to ">> Append" 
7. click "Start", all numbers in text file will be added. all characters other than digits will be skipped.

Screenshot 1:  Batch_Runner_Window


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to calculate the sum of the numbers in the same column? (73%)
How to calculate summary of every column in a text file? (71%)
How to add a leading zero to all 4 digit numbers in multiple files? (69%)
How to calculate the average of the numbers in the same column? (67%)
How to replace a word/string with increasing number in multiple files? (67%)
How to calculate the average of numbers of one column? (65%)
How to add 0 before all 4 digit numbers in multiple filenames? (65%)
How to calculate the summaries of every line in a txt file? (65%)

Check Demo of Text data calculation
Keywords:
summary of all numbers  eval  summary  digits  skip  mode  write  calculate  all characters  append  calculate text summary  multiple all numbers in file  calculate text data  calculation in text file  text to numbers  filename to text  multiple output files  other file