Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!hsdndev!wuarchive!cs.utexas.edu!yale!ox.com!mudos!mju From: mju@mudos.ann-arbor.mi.us (Marc Unangst) Newsgroups: comp.unix.programmer Subject: Re: how to truncate lines Message-ID: <1991Feb19.014649.133@mudos.ann-arbor.mi.us> Date: 19 Feb 91 01:46:49 GMT References: <1991Feb18.205238.14418@dartvax.dartmouth.edu> Distribution: usa Organization: The Programmer's Pit Stop, Public Access Unix +1 313 665 2832 Lines: 10 In article <1991Feb18.205238.14418@dartvax.dartmouth.edu> mdm@icefloe.dartmouth.edu (Michael McDaniel) writes: >I am trying to write a simple shell script that will truncate lines fed >from the standard input to 80 characters. I only want the first 80 cat file.with.really.long.lines | cut -c1-80 > file.with.shorter.lines -- Marc Unangst | "I think I have a bad disk. Even though I mju@mudos.ann-arbor.mi.us | folded it to fit into my drive, it still ...!umich!leebai!mudos!mju | doesn't work..." -Caller to a tech support line