Forrest logo
back to the pr tool

pr:tldr:a94bd

pr: Print multiple files with a default header and footer.
$ pr ${file1} ${file2} ${file3}
try on your machine

The command "pr ${file1} ${file2} ${file3}" is used to concatenate and print the contents of multiple files in parallel columns.

Here's an explanation of each part of the command:

  • "pr" is the command itself, short for "print". It is a Unix command that formats files for printing or viewing on the terminal.
  • "${file1}, ${file2}, ${file3}" are variables representing the names of the files that you want to print.

To use this command, you need to replace "${file1}, ${file2}, ${file3}" with the actual file names or paths you want to concatenate and print. The command will then take the contents of all three files and print them side by side in parallel columns.

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 pr tool