line length
David C Lawrence
tale at pawl.rpi.edu
Thu May 11 01:38:32 AEST 1989
In <19546 at adm.BRL.MIL> mchinni at 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 at rpitsmts.bitnet, tale%mts at itsgw.rpi.edu, tale at pawl.rpi.edu
More information about the Comp.unix.questions
mailing list