Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to insert new lines in string?
October 22, 2004, 4:02 am
rate this thread
Re: How to insert new lines in string?
> I have a file that is 1 line but 1000's of characters long. How can
> I insert a newline every nth character? or would sed be better for
fold or fmt would be better. There is a perl implementation of fold
as a part of the Perl Power Tools bundle, which is available on CPAN.
(search.cpan.org isn't responding at the moment or I'd give you a