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

Re: How to test a manpage? ‘nroff -man | less’ does not display like ‘man’.

14.07.2010 13:14, Roger Leigh wrote:
> On Wed, Jul 14, 2010 at 08:57:12AM +0200, Luca Falavigna wrote:
>> Il 14/07/2010 6.50, Charles Plessy ha scritto:
>>> Does anybody know how a more convenient to display a
>>> manpage the same way as users will get it by using ‘man’ ?
>> groff -T ascii -man <manpage>
>> zcat /usr/share/man/manX/XXX | groff -T ascii -m man
> You want '-T utf8' to match the output in the original question.
> And you also need to run it through the preprocessors.
> 'cat manpage.1 | tbl | eqn | pic | groff -T utf8 -man > manpage.txt'
> or use groffer(1) to automatically run the needed preprocessors.

 $ man ./manpage.1 > manpage.txt


Reply to: