User: editor -- 2008-06-08 << 179 181 >> Hits: 526Type: 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 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%)How to extract all lines with more than 30 characters from multiple files? (59%) Check Demo of Advanced search and replace Keywords: less length batch replace lines characters character batch replace line remove remov move rem batch file set characters batch replace characters 10 lines replace lines with batch search and replace line 10 search and replace batch open source replace lines batch open source batch replace