LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   breaking a line (https://www.linuxquestions.org/questions/programming-9/breaking-a-line-725343/)

sunlinux 05-12-2009 12:47 AM

breaking a line
 
suppose thr is a long line in vi editor . How can we break such big line in many lines like after 80 characters gap ?

I mean I want to break a big line in smaller one after 80 characters

anomie 05-12-2009 12:58 AM

Is using vi to insert the newlines a requirement? If not, try fmt(1).

e.g.: $ fmt -w 80 input_file


All times are GMT -5. The time now is 06:10 AM.