Forrest logo
back to the groff tool

groff:tldr:192e2

groff: Format output for a PostScript printer, saving the output to a file.
$ groff ${path-to-input-roff} > ${path-to-output-ps}
try on your machine

This is a command that uses the 'groff' typesetting system to convert a document written in roff format (a text processing language) into a PostScript file.

Here's a breakdown of the command:

  • 'groff': It is the name of the typesetting system command-line tool that we're using for document processing.
  • '${path-to-input-roff}': This is a placeholder for the actual path to the input roff file that you want to convert. You need to replace it with the specific path and filename of your input file.
  • '>': This is a redirection operator used in the command line to redirect the output to a file instead of displaying it on the terminal.
  • '${path-to-output-ps}': Similar to the input path, this is a placeholder for the path and filename of the desired output PostScript file. Replace it with the specific path where you want to save the converted file.

When you run this command, the 'groff' tool will take the input roff file provided and process it according to the roff formatting rules. Then, the resulting document will be saved to the specified location as a PostScript file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the groff tool