Examples (5)
Format output for a PostScript printer, saving the output to a file
groff path/to/input.roff > path/to/output.psRender a man page using the ASCII output device, and display it using a pager
Render a man page into an HTML file
groff -man -T html path/to/manpage.1 > path/to/manpage.htmlTypeset a roff file containing [t]ables and [p]ictures, using the [me] macro set, to PDF, saving the output
groff -t -p -me -T pdf path/to/input.me > path/to/output.pdfRun a `groff` command with preprocessor and macro options guessed by the `grog` utility
eval "$(grog -T utf8 path/to/input.me)"made by @shridhargupta | data from tldr-pages