Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

180.Advanced search and replace -- How to batch replace lines that has less than 10 characters?

User: editor -- 2008-06-08          << 179  181 >>
Hits: 2144
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to batch replace lines that has less than 10 characters?
Input Sample:
This is line1, longer than 10
abcde
This is line3, longer than 10
This is line4, longer than 10
22222
This is line6, longer than 10
Output Sample:
This is line1, longer than 10
--- one line removed here ---
This is line3, longer than 10
This is line4, longer than 10
--- one line removed here ---
This is line6, longer than 10
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file  
2. ctrl-h open 'Replace' dialog  
in 'Replace' page  
* set 'Replace Unit' to 'Line' 
* set 'Replace with pattern':  

* set 'If':

3. click 'Replace', ok!  

Download Script:  scripts/180.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to remove all lines that shorter than 10 characters? (74%)
How to extract all lines that has more than 2 numbers? (65%)
How to batch replace text that contains special characters like $,{,} ? (64%)
How to remove/delete line breaks of all lines which has more than 20 characters? (61%)
How to replace line that contains no space? (60%)
How to extract all lines that has more than 4 columns from csv file? (60%)
How to extract all lines longer than 80 characters from a text file? (60%)
How to extract all lines that has no leading spaces? (59%)

Check Demo of Advanced search and replace
Keywords:
less  length  batch replace lines  characters  character  batch replace line  remove  remov  move  rem  less than lines  with less characters  batch file set characters  batch set characters  batch replace characters  search and replace batch open source  10 lines  replace lines with batch