Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

262.Advanced search and replace -- How to shuffle all the lines in a text file?

User: editor -- 2008-08-30
Hits: 244
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to shuffle all the lines in a text file?
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-o open text file
2. ctrl-h open "Replace" dialog
* set "Replace with pattern" to:

* select "Advanced" page, enter "Run following for each matched unit" like:


3. Click "Replace", done!

Example:
a
b
c
d
e
f
g
May be shuffled and output like:
d
g
f
e
b
a
c
Download Script:  scripts/262.rst.zip

Similar Examples:
How to reverse the order of all the lines in a text file? (76%)
How to sort all the lines of a text file randomly? (75%)
How to remove/delete all blank lines in a text file? (73%)
How to delete duplicate lines of a text file? (71%)
How to reverse all cases of letters in a text file? (70%)
How to duplicate each line 5 times in a text file? (69%)
How to extract all IP address from a text file? (69%)
How to sort and delete duplicate lines of a text file? (68%)

Check Demo of Advanced search and replace