From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: balaji Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: An old question on word wrapping - printers Date: Mon, 09 Dec 2002 12:10:59 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3DF695C4@smaug.ocis.temple.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039453882 8548 80.91.224.249 (9 Dec 2002 17:11:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 17:11:22 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18LRR9-0002DR-00 for ; Mon, 09 Dec 2002 18:11:19 +0100 Original-Received: (qmail 19608 invoked by uid 5); 9 Dec 2002 17:11:14 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19580 invoked by uid 49493); 9 Dec 2002 17:11:14 -0000 Original-Received: from balaji@temple.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-0.1/5.0):. Processed in 0.402372 secs); 09 Dec 2002 17:11:14 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 9 Dec 2002 17:11:13 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6V00JTW3QIVD@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 09 Dec 2002 12:11:13 -0500 (EST) Original-Received: from nimbus.ocis.temple.edu (nimbus.ocis.temple.edu [155.247.166.101]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6V00HGQ3QHUU@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 09 Dec 2002 12:11:06 -0500 (EST) Original-Received: from smaug.ocis.temple.edu (mailbox.temple.edu [155.247.166.76]) by nimbus.ocis.temple.edu (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id gB9HB0xo024923 for ; Mon, 09 Dec 2002 12:11:00 -0500 (EST) Original-To: tru64 managers X-Mailer: InterChange (Hydra) SMTP v3.61.08 X-WebMail-UserID: balaji@temple.edu X-EXP32-SerialNo: 50000141 Xref: main.gmane.org gmane.os.tru64.managers:2667 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2667 Thanx to quickfire reply to all those replied. Following are the response with the names Balaji./ Question Hello, I was wondering if there is a way to print a file with big lines of text ( greater 80 chars) and have it word-wrap as it output on the paper. My problem here is that when I print a file with one line of 200 characters only 80 will appear on the paper and the rest are truncated. Replies: ======================================================== Steve Feehan fmt -80 < file | lpr ======================================================== George Gallen what about using fold as your print filter. or manually. cat filename | fold -w #cols | lp -dPRINTERNAME George =========================================================== stan@temple.edu Balaji, if printing to a poscript printer, I suggest you check out the pform utility. This utility has an option to do what you want. I use it all the time in Pine (via my default configuratio) to pipe email text to pform then printing it. This method works nicely and long lines wrap. ========================================================================= Selden E Ball Jr Use a2ps as a filter. See http://www.infres.enst.fr/~demaille/a2ps/ I hope this helps. Selden ====== Selden E. Ball, Jr. =============================================================================