From owner-freebsd-questions Fri May 12 21:36:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from oracle.clara.net (oracle.clara.net [195.8.69.94]) by hub.freebsd.org (Postfix) with ESMTP id 892F437BD97 for ; Fri, 12 May 2000 21:36:07 -0700 (PDT) (envelope-from merlin@netlink.co.uk) Received: from [212.126.135.63] (helo=A470.com) by oracle.clara.net with smtp (Exim 2.12 #2) id 12qTem-000PdZ-00 for freebsd-questions@freebsd.org; Sat, 13 May 2000 05:36:04 +0100 Received: (qmail 84947 invoked by uid 1000); 13 May 2000 04:38:46 -0000 Date: Sat, 13 May 2000 04:38:46 +0000 From: Darren Wyn Rees To: freebsd-questions@freebsd.org Subject: 'pr' problem Message-ID: <20000513043846.D84340@netlink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Organization: A470 X-No-Archive: yes X-PGP-812C54B1: F8 79 5E 84 F0 20 A5 62 FA 2D E9 BD BE 06 7D 10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm having difficulty getting the 'pr' util to work (as I was used to it, using Linux). I have a small plain text database and a shell 1|[a]|and, with, whether|0|1 2|[ab]|a son; [a^b] an ape|1|1 script which formats that database. #!/usr/local/bin/bash # # gcodo - prosesu geiriadur cymraeg y canol oesoedd # # gcodo < ffeil # # ee. ffeil while read llinell; do one=`echo $llinell | cut -f2 -d"|"` two=`echo $llinell | cut -f3 -d"|"` echo -e $one\\c >> /tmp/one.$$ echo -e "to $two\c" >> /tmp/two.$$ fold -w27 /tmp/one.$$ >> /tmp/un.$$ fold -w35 /tmp/two.$$ >> /tmp/dau.$$ pr -m -t -w75 /tmp/un.$$ /tmp/dau.$$ echo -e "-----------------------------------------------\c" rm /tmp/one.$$ /tmp/two.$$ /tmp/un.$$ /tmp/dau.$$ echo done The Linux pr didn't split words : ----------------------------------------------------------------- [abad] an abbott; [abades] an abbess; [abadaeth] an abbotship; [abaty] an abbey ----------------------------------------------------------------- The FreeBSD pr does : ----------------------------------------------------------------- [abad] an abbott; [abades] an abbess; [abadaeth] an abbotship; [aba ty] an abbey ----------------------------------------------------------------- I've read the man pages. Please, no suggestions to use perl :-) Thanks for any useful input ! Darren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message