Operating System - HP-UX
1826103 Members
4654 Online
109690 Solutions
New Discussion

Split a file existing one long line in several lines

 
SOLVED
Go to solution
Luk Vandenbussche
Honored Contributor

Split a file existing one long line in several lines

I have a file with one long line, without any carriage return (0A)

How can I put a carriage return after each 80 positions?
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Split a file existing one long line in several lines

have you tried dd? man dd

live free or die
harry d brown jr
Live Free or Die
Ralph Grothe
Honored Contributor
Solution

Re: Split a file existing one long line in several lines

man fold
Madness, thy name is system administration
Luk Vandenbussche
Honored Contributor

Re: Split a file existing one long line in several lines

Fold is the solution.

Thx