You could do this with a substitution:
s/(.{128})/$1\n/g;
This does not add a newline to the final segment if it's shorter than 128 characters.
In reply to Re: How do I wrap long lines at a fixed width, ignoring word boundaries?
by chipmunk
in thread How do I wrap long lines at a fixed width, ignoring word boundaries?
by Haggis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |