Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

354.Replace text in multiple files -- How to replace the second character of every line to 4 in multiple files?

User: jiang -- 2009-09-23          << 353  355 >>
Hits: 496
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
Folder inside 1000 text file,How to replace the second character of every line to 4 in every text file? how to replace a relatively rapid pace?THANKS
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-b open "Batch Runner" window
2. click "Search Files" to search multiple files for replacement. 
3. click "Fast Replace" button to open "Fast Replace" window
(1) click "Clear" to clear all lines.
(2) click "Add", 
fill in "Search=>" like: 
fill in "Replace=>" like: 
(3) check the options, make sure "Regular Exp" option is selected, all other options are NOT selected.
4. click "Start", finish.

Note: 
* if you want to replace the Xth char of each line to Y, in step 3(2):
fill in "Search=>" like: 
fill in "Replace=>" like: 

* You should make backup in advance to avoid unnecessary data loss caused by mis-operation.

* To avoid overwriting old files, in "Batch Runner" window, you can also  select "Change Output Folder" option, and enter output folder name behind.

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to replace the second character of every line to 4 in a text file? (91%)
How to remove a string of characters from multiple filenames? (67%)
How to remove some specified characters from multiple filenames? (67%)
How to replace the 2nd and 3rd occurrences of some words in multiple files? (66%)
How to delete the second column in multiple text files? (65%)
How to remove the first 10 characters of each line in text file? (65%)
How to replace a word only one time in multiple text files? (64%)
How to calculate the summaries of every line in a txt file? (63%)

Check Demo of Replace text in multiple files
Keywords:
sar  inside  backup  second  every line  100  output folder  folder name  operation  every  replace second character  replace every second  output 1 character in each line  text replacement  can make multiple search and replace  every character  search backup replace  replace files by folder