Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

857.Text sort -- How to sort the numbers in each line by the descending order in a text file?

User: editor -- 2011-09-18          << 856  858 >>
Hits: 1940
Type: Text sort   
Search all Text sort examples
Description:
How to sort the numbers in each line by the descending order in a text file?
Input Sample:
38
126
0
-5
827
44
Output Sample:
827
126
44
38
0
-5
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open the text file containing numbers in each line
2. ctrl-h open 'replace' dialog
* set 'replace with pattern' entry to:

3. click 'replace', done.

Note: for multiple files, you can click 'batch...' button, and drag multiple files to 'batch runner' window, then click 'batch replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to change the number in each line to specified order in a text file? (75%)
How to count number of each intial letters in all words in text file? (67%)
How to change columns in each line to specified order in text file? (67%)
How to sort all the numbers in each line randomly? (65%)
How to sort all lines of ip addresses in a text file? (65%)
How to add a number in each line indicating number of words in this line? (64%)
How to join every sequential line with a random line in a text file? (62%)
How to duplicate each line 5 times in a text file? (62%)

Check Demo of Text sort
Keywords:
descending  desc  order  containing  text sort  sort  numbers  contain  end  multiple files  batch text sort numbers  batch file sort numbers  sort numbers in batch  sort numbers batch  batch sort numbers  batch sort text line and replace  sort containing  batch sort files order