Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

716.Advanced search and replace -- How to change columns in each line to specified order in text file?

User: editor -- 2011-02-14          << 715  717 >>
Hits: 4004
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to change columns in each line to specified order in text file? 
Need to change the column sequence from 123456789 to 567893142
Input Sample:
A1 A2 A3 A4 A5 A6 A7 A8 A9 
B1 B2 B3 B4 B5 B6 B7 B8 B9 
Output Sample:
A5 A6 A7 A8 A9 A3 A1 A4 A2 
B5 B6 B7 B8 B9 B3 B1 B4 B2 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. ctrl-h open 'replace' dialog 
* set 'replace unit' to 'Line' 
* set 'replace with pattern' to: 
 
3. click 'replace', done. 
4. ctrl-s save to disk. 
 
Notes:  
* Above syntax need Replace Pioneer version 2.61 at least 
* 5..9 equal to 5,6,7,8,9

Screenshot 1:  Replace_Window


Similar Examples:
How to change the number in each line to specified order in a text file? (90%)
How to change each line into specified format? (70%)
How to sort the numbers in each line by the descending order in a text file? (70%)
How to make search and replace only in specified lines in text file? (68%)
How to change each line of data to the specified format? (68%)
How to extract multiple lines in specified order from many text files? (68%)
How to remove lines containing specified words in a text file? (67%)
How to shuffle all elements in a specified range in text file? (67%)

Check Demo of Advanced search and replace
Keywords:
123456  12345  1234  equal  123  syntax  tax  order  columns  sequence  text to columns open source  text file sequence replace  change line to column  line order  order line  text columns  text to columns  replace in sequence