On Wed, Mar 27, 2013 at 08:08:33PM -0400, Anonymous wrote:
> Subject: simply trying to put a box around text
> 
> I found a rough example out in the wild for how to box text using
> groff.  This is my attempt to make it work:
> 
> ===8<-----------------------------------------
> #!/bin/bash
> 
> cat <<EOF | pic |groff -Tascii | sed '/^$/d'
> .B1
> &client
> &address1
> &address2
> &address3
> .B2
> EOF
> ===8<-----------------------------------------
> 
> Any ideas why the text does not end up inside a box?  Piping the text
> through "pic" was a guess.. but it does not make a difference either
> way.

try ...

cat <<EOF | pic |groff -Tascii -mm | sed '/^$/d'
.B1
&client
&address1
&address2
&address3
.sp
.B2
EOF
 

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 mbian...@foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com

Reply via email to