groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] <OK> (no subject)


From: Mike Bianchi
Subject: Re: [Groff] <OK> (no subject)
Date: Wed, 27 Mar 2013 20:58:46 -0400
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

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

 address@hidden
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]