|User: editor -- 2010-05-22 << 516 518 >>|
|Type: Advanced search and replace|
|Search all Advanced search and replace examples|
|How to exchange the line 10 and 20 from many text files all at once?|
|Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.|
|1. open "Tools->Batch Runner" menu |
2. drag multiple files from Windows file browser to Batch Runner window.
3. click "Fast Replace" button
* in search for pattern, enter:
* in replace with pattern, enter:
4. make sure "regular exp" option is selected, click "Replace", done!
Note: the regular expression above means: (9 lines)(1 line)(9 lines)(1 line), they map to variable $1$3$4$6, so after exchange, they should be $1$6$4$3.
|How to remove the line 10 to 20 from many text files all at once? (90%)|
How to remove the last 3 lines of multiple text files all at once? (67%)
How to extract all lines with numbers from many text files? (64%)
How to extract half of lines from a text file randomly? (62%)
How to convert many html files to text files all at once? (61%)
How to change all numbers in a text file to 2 decimial places? (60%)
How to extract 5 unique lines from a text file with 30 lines? (59%)
How to change all the letters in a text file to upper cases? (59%)
Check Demo of Advanced search and replace
|exchange variable var after map regular expression expression many text regular regula multiple variable 10 once line exchange exchange replace replace with variable many map replace once replace all text after|