Show man page from stdin

I am developing a man page using the first one. While I am doing this, I would like to quickly show the end result. I am currently doing it like this:

rst2man < the-man-page.rst > tmp
man ./tmp

      

Is there a way to do this with a single liner without creating a temporary file? I tried to pipe the output directly to the man command.

+3


source to share


1 answer


You can use the --local-file

command argument man and tell it -

to read from stdin.

Example:



rst2man < the-man-page.rst | man -l -

      

+3


source







All Articles