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: 382
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 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 sort file by the number which first appear in each line? (56%)
How can I add a word before the last 10 characters of each line? (56%)
How to reverse a text file by characters? (56%)

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