pattern changing

Hi,

I have a file with contents in this format....

01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890...

How can I make it to this format...

0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
0123456789
.
.
.

Is there any command that can help me acheive this quickly..

I have just quoted like '0123456789'.. I just put it up like that... Its not in a seriel fashion... But the length of each record after formatting should is fixed say 30....

Thanks for all your help!

I have just quoted like '0123456789'.. I just put it up like that... Its not in a seriel fashion... But the length of each record is fixed say 30....

Thanks!

Take a look at the fold command:

fold -w 30 file

[if I correctly understood your requirement]

Yep PERFECT!!!
Thanks Rubin...