Forrest logo
back to the enscript tool

enscript:tldr:25167

enscript: Generate a PostScript file from a text file.
$ enscript ${path-to-input_file} --output=${path-to-output_file}
try on your machine

This command is utilizing the "enscript" command-line tool to convert a text file to a PostScript file. Here's a breakdown of the command:

  • "enscript": This is the name of the command or the executable program that is being invoked.
  • "${path-to-input_file}": This is a placeholder representing the full path (location) of the input file you want to convert. You need to replace "${path-to-input_file}" with the actual path to your input file.
  • "--output=${path-to-output_file}": This flag specifies the output file name and location. Again, "${path-to-output_file}" is a placeholder representing the full path where the output file will be created. Replace it with the desired output file path.

In summary, the command takes the input file specified by "${path-to-input_file}", converts it to PostScript format using "enscript", and saves the resulting output file at the location specified by "--output=${path-to-output_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 enscript tool