Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

813.Advanced search and replace -- How to shuffle specified lines in multiple text files?

User: chenjia -- 2011-06-30          << 812  814 >>
Hits: 4341
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
mutiple txt files line random shuffle 
Input Sample:
text1: 
 
title  
line 1 
line 2 
line 3 
line 4 
 
text 2: 
 
title  
 
line 5 
line 6 
line 7 
line 8 
 
...
Output Sample:
text1: 
 
title 
line 3 
line 1 
line 2 
line 4 
 
text 2. 
 
title 
 
line 8 
line 5 
line 7 
line 6 
 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open 'Tools->Batch Runner' dialog 
2. drag multiple text file from "windows file browser"  to 'Batch Runner' window 
3. click 'Fast Replace' button to open 'Fast Replace' dialog 
* click 'Add' to add one replace rule: 
leave 'search' to blank 
to shuffle all lines, set 'replace' to: 
 
to shuffle from line 2 to the end of file, set 'replace' to: 
 
* click "ok" 
4. check option of 'Regular exp" and "cross line", and click "Start", done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract specified lines in multiple excel(csv) files? (78%)
How to move the specified line to the end in multiple files? (76%)
How to shuffle all the lines in a text file? (73%)
How to batch extract specified lines from a text file? (73%)
How to shuffle all elements in a specified range in text file? (69%)
How do I replace specified lines with each line from a file? (67%)
How to remove/delete extra blank lines in multiple text files? (67%)
How to remove some specified characters from multiple filenames? (67%)

Check Demo of Advanced search and replace
Keywords:
mutiple  muti  shuffle all lines  shuffle  leave  unique  blank  random  rando  rand  shuffle text file lines windows  shuffle text file windows  shuffle text file in windows  shuffle text files in windows  windows shuffle lines  shuffle lines in text file windows  shuffle files  mutiple line