| User: editor -- 2010-05-22 << 516 518 >> |
| Hits: 393 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to exchange the line 10 and 20 from many text files all at once? |
| Answer: |
| 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 click "Add", * 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. |
Similar Examples: |
| 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 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%) How to delete lines 1-9, 21, 24 from many files? (58%) |
Check Demo of Advanced search and replace |
| Keywords: |
| exchange variable var after map regular expression expression many text fast replace fast 10 once exchange replace replace with variable many map replace all text after replace once after text search and replace line 10 |