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          << 405  407 >>
Hits: 665
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" on windows platform to finish following steps.
1. ctrl-o 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

Screenshot 1:  Replace_Window


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 lines of ip addresses in a text file? (71%)
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%)

Check Demo of Random word generator
Keywords:
shuffle  unique  functions  random word generator  ord generator  word generator  random wo  random word  random wor  refer  word sort generator  text generator count  shuffle lines in the text  shuffle text lines  shuffle text file  text shuffle  lines function  word sort and count