Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!rpi.edu!tale From: tale@pawl.rpi.edu (David C Lawrence) Newsgroups: comp.unix.questions Subject: Re: line length Message-ID: Date: 10 May 89 15:38:32 GMT References: <19546@adm.BRL.MIL> Sender: usenet@rpi.edu Reply-To: tale@pawl.rpi.edu Distribution: comp Lines: 14 In-reply-to: mchinni@pica.army.mil's message of 10 May 89 14:12:27 GMT In <19546@adm.BRL.MIL> mchinni@pica.army.mil (Michael J. Chinni) writes: MJC> On all UNIX systems I have seen, there is a command called "fold" MJC> which will do this for you (assuming you want each 132char. line MJC> to become a 80char. line and a 52 char. line). If you just want MJC> to throw away the extra 52 characters, try "cut -c1-80". Better yet, use colrm. When you want to just take out columns from a line, "colrm START [&optional END]" is faster that cut; the difference is especially noticeable in loops. The only thing I use cut for is field operations. Dave -- tale@rpitsmts.bitnet, tale%mts@itsgw.rpi.edu, tale@pawl.rpi.edu