Forrest logo
back to the pr tool

pr:tldr:cf7fc

pr: Print all files together, one in each column, without a header or footer.
$ pr -m -T ${file1} ${file2} ${file3}
try on your machine

The given command is referencing the "pr" command with several options and file operands. Here is an explanation of each part:

  • "pr": The "pr" command is commonly used to prepare files for printing. It paginates the given files and prints them in a specified format.

  • "-m": This option in the command tells the "pr" command to merge multiple input files into a single output file. It will interleave the lines from different files rather than printing them separately.

  • "-T": This option specifies that the input files are plain text files.

  • "${file1} ${file2} ${file3}": These are the file operands or file names that are provided as input to the command. You would need to replace "${file1}", "${file2}", and "${file3}" with the actual names or paths of the files you want to print and merge.

Overall, the provided command will merge and paginate the text files ${file1}, ${file2}, and ${file3}, printing them in a specified format suitable for printing purposes.

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