Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

640.Replace text in multiple files -- How to count the number of words for many files and append result to each file?

User: editor -- 2010-10-27          << 639  641 >>
Hits: 413
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to count the number of words for many files and append result to each file?
Input Sample:
=============================
File1.txt:

This is to test file1, line1
This is to test file1, line2
=============================
File2.txt:

This is file2

Output Sample:
=============================
File1.txt:

This is to test file1, line1
This is to test file1, line2

Totally 12 words.
=============================
File2.txt:

This is file2

Totally 3 words.
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 multiple text files from "Windows File Browser" to "Batch Runner" window
3. click "Fast Replace" button
* click "Add", in "Search", enter:

* in "Replace", enter:

* click "ok" button.
* make sure "Regular Exp" and "Cross Line" options are selected.
* click "Start", done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to count number of words appeared in a text file? (71%)
How to count the number of words that ended with "ing" in a text file? (65%)
How to count the number of words that start with "ea" in a text file? (65%)
How to count the number of words with different length in an English article? (63%)
How to sort file by the number which first appear in each line? (61%)
How to count the number of ip addresses from each country? (61%)
How to count the number of words that started with "en"? (60%)
How to count the number of records for each month in a web log file? (58%)

Check Demo of Replace text in multiple files
Keywords:
how to count the number of words for many files and append result to each file  total  how to count the number of w  append  ppen  cross line  result  count  many files  fast replace  number of words of multiple files  count in multiple files  count the number of words in  count words  button click count  multiple words  append files  file append