Login  Register

Re: Embed man pages in a book

Posted by mojavelinux on Aug 25, 2016; 10:28pm
URL: https://discuss.asciidoctor.org/Embed-man-pages-in-a-book-tp4906p4918.html

Of course, you need to extract the content of the <body> tag to insert that into your document...but that's all pretty reasonable.

-Dan

On Thu, Aug 25, 2016 at 4:28 PM, Dan Allen <[hidden email]> wrote:
One more time. Missing the semi-colon:

COMMAND=ls; vim -c ":Man $COMMAND" -c ':TOhtml' -c ":w! `pwd`/$COMMAND.html" -c ':qa!'

On Thu, Aug 25, 2016 at 4:26 PM, Dan Allen <[hidden email]> wrote:

On Thu, Aug 25, 2016 at 4:25 PM, Dan Allen <[hidden email]> wrote:
COMMAND=ls
vim -c ":Man $COMMAND" -c ':TOhtml' -c ":w `pwd`/$COMMAND.html" -c ':qa!'

Correction. That should be on one line.

COMMAND=ls vim -c ":Man $COMMAND" -c ':TOhtml' -c ":w `pwd`/$COMMAND.html" -c ':qa!'


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux