Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!broadway!agw From: agw@broadway.columbia.edu (Art Werschulz) Newsgroups: comp.unix.questions Subject: awk or sed question Message-ID: <4780@columbia.UUCP> Date: Thu, 2-Jul-87 14:33:59 EDT Article-I.D.: columbia.4780 Posted: Thu Jul 2 14:33:59 1987 Date-Received: Sat, 4-Jul-87 06:42:05 EDT Sender: nobody@columbia.UUCP Reply-To: agw@columbia.edu (Art Werschulz) Distribution: world Organization: Columbia University Computer Science Dept. Lines: 25 Hi all. I have a file consisting of some lines that have 80 chars or fewer, and some with more than 80 characters (in fact, some may have more than 160 characters). I wish to break up only the >80-char lines, so that no line has more than 80 chars. Here's the catch: I want to break the long lines only at whitespace. Thus, I can't use % fold -80 foo.tex since a space in the middle of a word would be disatrous. Any suggestions? Art Werschulz ARPAnet: agw@columbia.edu USEnet: ... seismo!columbia!agw BITnet: agw%columbia.edu@wiscvm CCNET: agw@columbia ATTnet: Columbia University (212) 280-3610 280-2736 Fordham University (212) 841-5323 841-5396