[SLL] left and right justified text [fully justified]
Paul A. Franz, P.E.
paul at eucleides.com
Sat May 10 17:09:06 PDT 2008
On Sat, May 10, 2008 1:26 pm, Phil Mocek wrote:
> On Sat, May 10, 2008 at 12:53:30PM -0700, Paul A. Franz, P.E. wrote:
>> Does anyone know of a utility other than lex that can [format
>> plain text fully justified]?
>
> Par, the paragraph reformatter, does that well.
>
> Its configuration syntax is somewhat difficult to learn. Its man
> page states:
>
> For those who wish to use it immediately and understand it
> later, assign the PARINIT environment variable the following
> value:
> rTbgqR B=.,?_A_a Q=_s>|
>
> You'll want to add a 'j' in there. I don't know if the position
> matters, but if you set PARINIT="rTbgjqR B=.,?_A_a Q=_s>|" then
> pipe some text through par, it will come out fully-justified to a
> 72-character line width.
>
>
> See:
>
> * <http://www.nicemice.net/par/>
> * <http://jmcpherson.org/par.html>
> * <http://packages.debian.org/stable/par>
>
> --
> Phil Mocek
>
Thanks - I got it to work but not until I ran ran "export" on the env variable. Any
idea why this was necessary?
[root at Beaker root]# PARINIT="rTbgjqR B=.,?_A_a Q=_s>|"
[root at Beaker root]# echo $PARINIT
rTbgjqR B=.,?_A_a Q=_s>|
[root at Beaker root]# cat ~/bin/test.save | par -w60
General
The maillog file ( /var/log/maillog) is examined for the
date specified and is reported in the following sections.
Section 1
First the total number of apparent spams blocked then the
number of spamming attempts that were blocked by all methods
to each recipient are listed in descending order of number
of attempted spams. Invalid users are obviously due to
spammers mismanaging their lists.
General
The maillog file ( /var/log/maillog ) is examined for the
date specified and is reported in the following sections.
Section 1
First the total number of apparent spams blocked then the
number of spamming attempts that were blocked by all methods
to each recipient are listed in descending order of number
of attempted spams. Invalid users are obviously due to
spammers mismanaging their lists.
[root at Beaker root]# export PARINIT
[root at Beaker root]# cat ~/bin/test.save | par -w60
General
The maillog file ( /var/log/maillog) is examined for the
date specified and is reported in the following sections.
Section 1
First the total number of apparent spams blocked then the
number of spamming attempts that were blocked by all methods
to each recipient are listed in descending order of number
of attempted spams. Invalid users are obviously due to
spammers mismanaging their lists.
General
The maillog file ( /var/log/maillog ) is examined for the
date specified and is reported in the following sections.
Section 1
First the total number of apparent spams blocked then the
number of spamming attempts that were blocked by all methods
to each recipient are listed in descending order of number
of attempted spams. Invalid users are obviously due to
spammers mismanaging their lists.
More information about the linux-list
mailing list