Path: utzoo!utgpu!water!watmath!watdcsu!dmcanzi From: dmcanzi@watdcsu.waterloo.edu (David Canzi) Newsgroups: comp.unix.wizards Subject: Re: folding arguments Message-ID: <4409@watdcsu.waterloo.edu> Date: 14 Feb 88 04:07:03 GMT References: <3822@megaron.arizona.edu> <120@gsg.UUCP> <2091@bsu-cs.UUCP> Reply-To: dmcanzi@watdcsu.waterloo.edu (David Canzi) Organization: U. of Waterloo, Ontario Lines: 18 In article <2091@bsu-cs.UUCP> dhesi@bsu-cs.UUCP (Rahul Dhesi) writes: > > $ find $DIR -print | nroff | sed -e 's/ */ /g' | ... > >Since nroff right-justifies by default, we use sed to squeeze multiple >blanks to a single blank so "while read" in sh will work. (Not >tested.) Instead of nroff, I used the fmt command, like so: find $DIR -print | fmt -1021 | ... The fmt command may be a Berkeleyism. 1021 is the maximum width that fmt allows me to specify on the two systems (BSD4.3 and Sun 3.2) where I tried this. -- David Canzi