Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

406.Random word generator -- How to sort all the lines of a text file randomly?

User: editor -- 2010-01-29
Hits: 176
Type: Random word generator   
Search all Random word generator examples
Description:
How to sort all the lines of a text file randomly?

or shuffle all the lines
Input Sample:
aa
bb
cc
dd
eee
sdf
Output Sample:
aa
sdf
dd
bb
cc
eee
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-h open text file
2. ctrl-h open replace dialog:
* in 'Replace with Pattern' enter:


3. click 'Replace', done!

For the function of rand_str_unique and count, please refer to:
http://www.mind-pioneer.com/replace/help/Functions.html
Download Script:  scripts/406.rst.zip

Similar Examples:
How to shuffle all the lines in a text file? (75%)
How to sort all lines of text by specified keyword? (74%)
How to reverse the order of all the lines in a text file? (73%)
How to sort all the lines of a text file by order the multiple columns? (70%)
How to sort the lines in a text files by the order of line length? (69%)
How to convert each line of a text file to the new format? (67%)
How to remove/delete all blank lines in a text file? (67%)
How to format all the data in the text file with 8.2 format? (66%)

Check Demo of Random word generator