| User: editor -- 2010-06-26 |
| Hits: 59 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to remove all lines that shorter than 10 characters? |
| Input Sample: |
| This is line1 This is line2 line3 This is line4 line5 |
| Output Sample: |
| This is line1 This is line2 This is line4 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-o open source text file 2. ctrl-h open 'replace' window * set 'Replace Unit' to 'Line' * set 'Search for pattern' to: 3. click 'Replace', done! 4. ctrl-s save to file. Notes: ^.{0,10}$ means lines that has less than or equal to 10 characters. |
Similar Examples: |
| How to batch replace lines that has less than 10 characters? (74%) How to remove all lines that contains more than one word? (72%) How to remove/delete line breaks of all lines which has more than 20 characters? (71%) How to delete/remove all lines that appearred more than once? (67%) How to extract all lines longer than 80 characters from a text file? (66%) How to remove all the lines that with odd line number for multiple files? (61%) How to reverse a text file by characters? (60%) How to move all image files with the width greater than height? (59%) |
Check Demo of Advanced search and replace |