Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!bcm!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions Subject: Re: Splitting up a too-wide text file Message-ID: <1991Mar15.012231.7048@convex.com> Date: 15 Mar 91 01:22:31 GMT References: <1991Mar15.003416.16893@athena.mit.edu> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 31 Nntp-Posting-Host: pixel.convex.com From the keyboard of jik@athena.mit.edu (Jonathan I. Kamens) come various solution for truncating lines. But I don't think that's what he wanted. he has things like this: (col) 0 80 1 a b c d e f g h i j 2 a b c d e f g h i j 3 a b c d e f g h i j 4 a b c d e f g h i j .... and wants this 1 a b c d e 2 a b c d e 3 a b c d e 4 a b c d e (now at page break, the stuff you chopped) 1 f g h i j 2 f g h i j 3 f g h i j 4 f g h i j i'm not sure how best to do that. he wants to chop at fields, not columns, but doesn't want it to go over col 80, and he wants that stuff chopped off placed on the next page. i could certainly do it with a perl script, but was hoping for a quick cut and paste solution. --tom