Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

585.Advanced search and replace -- How to find the 5 largest number from a text file automatically?

User: editor -- 2010-08-10          << 584  586 >>
Hits: 338
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to find the 5 largest number from a text file automatically?
There is a file that has multiple lines, each line is a number, how to find out the 5 largest number from them automatically?
Input Sample:
333
222
11
555
999
123
444
666
128
Output Sample:
999
666
555
444
333
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* input following in 'replace with pattern' entry:

3. click 'replace', done!

Note: you can also operate on mutiple files by clicking "batch..." button.

Screenshot 1:  Replace_Window


Similar Examples:
How to find out the top 5 largest and distinct numbers in a text file? (69%)
How to detect encoding type of a text file automatically? (66%)
How to import a list of urls to IE favorate automatically? (63%)
How to convert Roman number to Arabic number automatically? (60%)
How to change all numbers in a text file to 2 decimial places? (60%)
How to replace all the numbers in a text file to the square value? (57%)
How to capitalize the first words of each sentence automatically? (57%)
How to batch convert arabic number to roman numbers automatcially? (56%)

Check Demo of Advanced search and replace
Keywords:
muti  mutiple  automatically  automatic  automat  find  auto  ical  input  sort  largest number batch file  find the largest number in a text file  batch replace input source  mutiple line  find and replace multiple lines  batch files input number  how to find and replace multiple line text  batch file input from a text file