Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

314.Advanced search and replace -- How to limit a text file to less than 40 chars each line?

User: editor -- 2009-02-02          << 313  315 >>
Hits: 2277
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to limit a text file to less than 40 chars each line?
Input Sample:
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Output Sample:
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
01234567890123456789
0123456789012345678901234567890123456789
0123456789012345678901234567890123456789
01234567890123456789
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
Enter in 'search for pattern':

Enter in 'Replace with pattern':

3. click "Replace", done!
Download Script:  scripts/314.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to sort a text file by the length of text in each line? (69%)
How to split a text file to different files according to first word in each line? (66%)
How to split a text file to different files according to first word in each line? (66%)
How to split text file by about 200 chars without breaking line? (64%)
How to sort the text file by the date at the beginning of each line? (64%)
How to split a text file according to first word in each line? (63%)
How to delete all text after the second comma in each line? (63%)
How to split a text file with specified start and end line and name? (61%)

Check Demo of Advanced search and replace
Keywords:
less  chars each line  chars  char  enter  each line  each  source  open sour  open sou  replace chars each line  chars replace  replace chars  search and replace open source  search line  line search  replace with line  replace text file line