Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1233.Advanced search and replace -- How to change the order of lines according to specified position?

User: Rod Smith -- 2014-08-16          << 1232  1234 >>
Hits: 1034
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Change order of lines in a batch of documents
specifying souce position and destination position
Input Sample:
line one text
line two text
line three text
Output Sample:
line two text
line one text
line three text
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' dialogue
* set 'replace with pattern' to:

3. click 'replace', done.

Note: following are some more examples:
lines($match,'2,1,3..8') means 2,1,3,4,5,6,7,8
lines($match,'2,1,3..') means 2,1,3,4,... end
lines($match,'2,1,3<2>9') means 2,1,3,5,7,9
...

Screenshot 1:  Replace_Window


Similar Examples:
How to change each line into specified format? (68%)
How to change each line of data to the specified format? (66%)
How to exchange line3 and line4 in 4-line-groups matching specified pattern? (64%)
How to count the number of lines under each specified pattern? (63%)
How to extract random lines containing specified words? (62%)
How to change the number part of many filenames by adding some specified value? (62%)
How to rename files by adding specified strings at specified position? (61%)
How to break down each line into 3 lines at specific position? (61%)

Check Demo of Advanced search and replace
Keywords:
position  document  doc  acc  order  example  examp  end line  specified  means  more documents  examples of text  replace position  order lines text file  order text with batch  the end lines of  replace lines with batch  more replace