Path: utzoo!attcan!uunet!lll-winken!ncis.tis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!tut.cis.ohio-state.edu!ukma!rutgers!cmcl2!adm!xadmx!mchinni@pica.army.mil From: mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.unix.questions Subject: Re: line length Message-ID: <19546@adm.BRL.MIL> Date: 10 May 89 14:12:27 GMT Sender: news@adm.BRL.MIL Lines: 27 In article <160@ohsu-hcx.UUCP>, mkb@ohsu-hcx.UUCP (Marilyn Bushway) writes: > If I have output of 132 characters and I want it to be 80 characters > is there a unix command to change the line length??? > nosun!ohsu-hcx!mkb > or > tektronix!ohsu-hcx!mkb > or nosun!ohsu-hcx!mkb@rutgers.edu > Thanks in advance > Marilyn > > -- > Marilyn Bushway 3181 S.W. Sam Jackson Park Rd. Portland, OR 97201 > (503) 279-8328 e-mail {nosun,tektronix,ogccse,qiclab} ohsu-hcx!mkb On all UNIX systems I have seen, there is a command called "fold" which will do this for you (assuming you want each 132char. line to become a 80char. line and a 52 char. line). If you just want to throw away the extra 52 characters, try "cut -c1-80". /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Michael J. Chinni Chief Scientist, Simulation Techniques and Workplace Automation Team US Army Armament Research, Development, and Engineering Center User to skeleton sitting at cobweb () Picatinny Arsenal, New Jersey and dust covered workstation () ARPA: mchinni@pica.army.mil "System been down long?" () UUCP: ...!uunet!pica.army.mil!mchinni /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/