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: 3782
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 add title attribute for all images in html files automatically? (61%)
How to add alt attribute for all img tags in html files automatically? (61%)
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 change the numbering format in a text file to a new format? (58%)

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