Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

101.Advanced search and replace -- How to replace word 'abc' to 'def' in specified lines like 1-10,18,20?

User: editor -- 2008-05-14          << 100  102 >>
Hits: 369
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace word 'abc' to 'def' in specified lines like 1-10,18,20?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
It's an easy thing for replace pioneer:
1. ctrl-o open source file  
2. ctrl-h open replace dialog,         
in 'Replace' page, 
1)set 'Replace Scope' to 'Line' 
2)set 'Search for pattern' to: 

3)set 'Replace with Pattern': 

in 'Scope Filter' page: 
set line number filter to:

3. Click 'Replace', done!
Download Script:  scripts/101.rst.zip

Similar Examples:
How to search and replace text 'ReplaceMe' only in specified lines? (58%)
How to split a file by specified number of lines like 10,20,30,20,20,20 ...? (57%)
How to search and replace words in specified column in csv file? (53%)
How to search and replace text for specified occurrences with reg exp? (52%)
How to replace one specified word with a sequence of words from a file? (52%)
How to extract all specified links from a html file? (52%)
How to replace all OLD with NEW only in line 100 to line 300? (51%)
How to batch replace 'old' to 'new' in many pdf files? (51%)

Check Demo of Advanced search and replace
Keywords:
101  scope filter  abc  number filter  scope  replace scope  filter  fin  line number  eplace pioneer  replace abc def  replace abc  replace in specified line  filter number  pattern filter replace  number line  with number  file with word