summaryrefslogtreecommitdiffstats
path: root/upstream/mageia-cauldron/man1/pr.1
blob: 2ccdbbaa1f9c02b496b92befa4cb7ec14142f8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.5.
.TH PR "1" "August 2023" "GNU coreutils 9.4" "User Commands"
.SH NAME
pr \- convert text files for printing
.SH SYNOPSIS
.B pr
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
.SH DESCRIPTION
.\" Add any additional description here
.PP
Paginate or columnate FILE(s) for printing.
.PP
With no FILE, or when FILE is \-, read standard input.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
+FIRST_PAGE[:LAST_PAGE], \fB\-\-pages\fR=\fI\,FIRST_PAGE[\/\fR:LAST_PAGE]
begin [stop] printing with page FIRST_[LAST_]PAGE
.TP
\fB\-COLUMN\fR, \fB\-\-columns\fR=\fI\,COLUMN\/\fR
output COLUMN columns and print columns down,
unless \fB\-a\fR is used. Balance number of lines in the
columns on each page
.TP
\fB\-a\fR, \fB\-\-across\fR
print columns across rather than down, used together
with \fB\-COLUMN\fR
.TP
\fB\-c\fR, \fB\-\-show\-control\-chars\fR
use hat notation (^G) and octal backslash notation
.TP
\fB\-d\fR, \fB\-\-double\-space\fR
double space the output
.TP
\fB\-D\fR, \fB\-\-date\-format\fR=\fI\,FORMAT\/\fR
use FORMAT for the header date
.TP
\fB\-e[CHAR[WIDTH]]\fR, \fB\-\-expand\-tabs\fR[=\fI\,CHAR[WIDTH]\/\fR]
expand input CHARs (TABs) to tab WIDTH (8)
.TP
\fB\-F\fR, \fB\-f\fR, \fB\-\-form\-feed\fR
use form feeds instead of newlines to separate pages
(by a 3\-line page header with \fB\-F\fR or a 5\-line header
and trailer without \fB\-F\fR)
.TP
\fB\-h\fR, \fB\-\-header\fR=\fI\,HEADER\/\fR
use a centered HEADER instead of filename in page header,
\fB\-h\fR "" prints a blank line, don't use \fB\-h\fR""
.TP
\fB\-i[CHAR[WIDTH]]\fR, \fB\-\-output\-tabs\fR[=\fI\,CHAR[WIDTH]\/\fR]
replace spaces with CHARs (TABs) to tab WIDTH (8)
.TP
\fB\-J\fR, \fB\-\-join\-lines\fR
merge full lines, turns off \fB\-W\fR line truncation, no column
alignment, \fB\-\-sep\-string\fR[=\fI\,STRING\/\fR] sets separators
.TP
\fB\-l\fR, \fB\-\-length\fR=\fI\,PAGE_LENGTH\/\fR
set the page length to PAGE_LENGTH (66) lines
(default number of lines of text 56, and with \fB\-F\fR 63).
implies \fB\-t\fR if PAGE_LENGTH <= 10
.TP
\fB\-m\fR, \fB\-\-merge\fR
print all files in parallel, one in each column,
truncate lines, but join lines of full length with \fB\-J\fR
.TP
\fB\-n[SEP[DIGITS]]\fR, \fB\-\-number\-lines\fR[=\fI\,SEP[DIGITS]\/\fR]
number lines, use DIGITS (5) digits, then SEP (TAB),
default counting starts with 1st line of input file
.TP
\fB\-N\fR, \fB\-\-first\-line\-number\fR=\fI\,NUMBER\/\fR
start counting with NUMBER at 1st line of first
page printed (see +FIRST_PAGE)
.TP
\fB\-o\fR, \fB\-\-indent\fR=\fI\,MARGIN\/\fR
offset each line with MARGIN (zero) spaces, do not
affect \fB\-w\fR or \fB\-W\fR, MARGIN will be added to PAGE_WIDTH
.TP
\fB\-r\fR, \fB\-\-no\-file\-warnings\fR
omit warning when a file cannot be opened
.TP
\fB\-s[CHAR]\fR, \fB\-\-separator\fR[=\fI\,CHAR\/\fR]
separate columns by a single character, default for CHAR
is the <TAB> character without \fB\-w\fR and 'no char' with \fB\-w\fR.
\fB\-s[CHAR]\fR turns off line truncation of all 3 column
options (\fB\-COLUMN\fR|\-a \fB\-COLUMN\fR|\-m) except \fB\-w\fR is set
.TP
\fB\-S[STRING]\fR, \fB\-\-sep\-string\fR[=\fI\,STRING\/\fR]
separate columns by STRING,
without \fB\-S\fR: Default separator <TAB> with \fB\-J\fR and <space>
otherwise (same as \fB\-S\fR" "), no effect on column options
.TP
\fB\-t\fR, \fB\-\-omit\-header\fR
omit page headers and trailers;
implied if PAGE_LENGTH <= 10
.TP
\fB\-T\fR, \fB\-\-omit\-pagination\fR
omit page headers and trailers, eliminate any pagination
by form feeds set in input files
.TP
\fB\-v\fR, \fB\-\-show\-nonprinting\fR
use octal backslash notation
.TP
\fB\-w\fR, \fB\-\-width\fR=\fI\,PAGE_WIDTH\/\fR
set page width to PAGE_WIDTH (72) characters for
multiple text\-column output only, \fB\-s[char]\fR turns off (72)
.TP
\fB\-W\fR, \fB\-\-page\-width\fR=\fI\,PAGE_WIDTH\/\fR
set page width to PAGE_WIDTH (72) characters always,
truncate lines, except \fB\-J\fR option is set, no interference
with \fB\-S\fR or \fB\-s\fR
.TP
\fB\-\-help\fR
display this help and exit
.TP
\fB\-\-version\fR
output version information and exit
.SH AUTHOR
Written by Pete TerMaat and Roland Huebner.
.SH "REPORTING BUGS"
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
.br
Report any translation bugs to <https://translationproject.org/team/>
.SH COPYRIGHT
Copyright \(co 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
Full documentation <https://www.gnu.org/software/coreutils/pr>
.br
or available locally via: info \(aq(coreutils) pr invocation\(aq