使用法: pr [オプション]... [ファイル]...
印字のために, ページ付けや段組を行ないます.
長いオプションに必須の引数は短いオプションにも必須です.
+FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]
begin [stop] printing with page FIRST_[LAST_]PAGE
-COLUMN, --columns=COLUMN
output COLUMN columns and print columns down,
unless -a is used. Balance number of lines in the
columns on each page.
-a, --across 各行を段組の横方向へ順に出力
-COLUMN オプションと共に使用
-c, --show-control-chars
コントロールキャラクタにハットをつけ(例 ^G), その他の
印字不能な文字にはバックスラッシュと 8 進数で表示
-d, --double-space
行間に空行を挿入
-D, --date-format=FORMAT
ヘッダの日付の形式として FORMAT を用いる
-e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]
入力された CHAR を幅 WIDTH の空白に拡げる
CHAR, WIDTH の指定がなければ CHAR は TAB,
WIDTH は 8 に変更
-F, -f, --form-feed
改ページの際に改行ではなく, 改ページコードを使用
(-f と共に 3行分, -f を指定しない場合 5行分のヘッダを出力)
-h, --header=HEADER
use a centered HEADER instead of filename in page header,
-h "" prints a blank line, don't use -h""
-i[CHAR[WIDTH]], --output-tabs[=CHAR[WIDTH]]
replace spaces with CHARs (TABs) to tab WIDTH (8)
-J, --join-lines merge full lines, turns off -W line truncation, no column
alignment, --sep-string[=STRING] sets separators
-l, --length=PAGE_LENGTH
set the page length to PAGE_LENGTH (66) lines
(default number of lines of text 56, and with -F 63)
-m, --merge print all files in parallel, one in each column,
truncate lines, but join lines of full length with -J
-n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]
number lines, use DIGITS (5) digits, then SEP (TAB),
default counting starts with 1st line of input file
-N, --first-line-number=NUMBER
start counting with NUMBER at 1st line of first
page printed (see +FIRST_PAGE)
-o, --indent=MARGIN
offset each line with MARGIN (zero) spaces, do not
affect -w or -W, MARGIN will be added to PAGE_WIDTH
-r, --no-file-warnings
omit warning when a file cannot be opened
-s[CHAR], --separator[=CHAR]
separate columns by a single character, default for CHAR
is the
Usage: pr [OPTION]... [FILE]...
Paginate or columnate FILE(s) for printing.
Mandatory arguments to long options are mandatory for short options too.
+FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]
begin [stop] printing with page FIRST_[LAST_]PAGE
-COLUMN, --columns=COLUMN
output COLUMN columns and print columns down,
unless -a is used. Balance number of lines in the
columns on each page.
-a, --across print columns across rather than down, used together
with -COLUMN
-c, --show-control-chars
use hat notation (^G) and octal backslash notation
-d, --double-space
double space the output
-D, --date-format=FORMAT
use FORMAT for the header date
-e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]
expand input CHARs (TABs) to tab WIDTH (8)
-F, -f, --form-feed
use form feeds instead of newlines to separate pages
(by a 3-line page header with -F or a 5-line header
and trailer without -F)
-h, --header=HEADER
use a centered HEADER instead of filename in page header,
-h "" prints a blank line, don't use -h""
-i[CHAR[WIDTH]], --output-tabs[=CHAR[WIDTH]]
replace spaces with CHARs (TABs) to tab WIDTH (8)
-J, --join-lines merge full lines, turns off -W line truncation, no column
alignment, --sep-string[=STRING] sets separators
-l, --length=PAGE_LENGTH
set the page length to PAGE_LENGTH (66) lines
(default number of lines of text 56, and with -F 63)
-m, --merge print all files in parallel, one in each column,
truncate lines, but join lines of full length with -J
-n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]
number lines, use DIGITS (5) digits, then SEP (TAB),
default counting starts with 1st line of input file
-N, --first-line-number=NUMBER
start counting with NUMBER at 1st line of first
page printed (see +FIRST_PAGE)
-o, --indent=MARGIN
offset each line with MARGIN (zero) spaces, do not
affect -w or -W, MARGIN will be added to PAGE_WIDTH
-r, --no-file-warnings
omit warning when a file cannot be opened
-s[CHAR], --separator[=CHAR]
separate columns by a single character, default for CHAR
is the
PR(1) PR(1)
名前
pr - 印刷用にファイルのページづけ・段組みを行う
書式
pr [+FIRST_PAGE[:LAST_PAGE]] [-COLUMN] [-acdfmrtvFJT] [-e[IN-
TABCHAR[IN-TABWIDTH]] [-h HEADER] [-i[OUT-TABCHAR[OUT-TABWIDTH]] [-l
PAGE_LENGTH] [-n[NUMBER-SEPARATOR[DIGITS]] [-o MARGIN] [-s[SEP-CHAR]]
[-w PAGE_WIDTH] [-D DATEFORMAT] [-N LINE_NUMBER] [-S[SEP-STRING]] [-W
PAGE_WIDTH] [--across] [--columns=COLUMN] [--date=DATEFORMAT] [--dou-
ble--space] [--expand-tabs[=IN-TABCHAR[IN-TABWIDTH]] [--form-feed]
[--header HEADER] [--indent=MARGIN] [--length PAGE_LENGTH] [--merge]
[--number-lines[=NUMBER-SEPARATOR[DIGITS]] [--no-file-warnings] [--out-
put-tabs[=OUT-TABCHAR[OUT-TABWIDTH]] [--omit-header]
[--pages=FIRST_PAGE[:LAST_PAGE]] [--page_width=PAGE_WIDTH] [--separa-
tor[=SEP-CHAR]] [--sep-string[=SEP-STRING]] [--show-control-chars]
[--show-nonprinting] [--width=PAGE_WIDTH] [FILE...]
pr [--help] [--version]
説明
pr は FILE の内容にページを付けて標準出力に書き出す。オプションで指定す
れば段組みして出力することもできる。 FILE が 1 つも与えられないと標準入
力から読み込む。また FILE が ‘-’ だった場合には、そのファイルには標準入
力が用いられる。
デ フォルトでは、それぞれのページに 5 行のヘッダがつく。ヘッダは 2 行の
空行、日付・ファイル名・ページ番号の行、2 行の空行からなる。各ページ の
末尾には 5 行の空行からなるフッタも出力される。
デ フォルトでは PAGE_LENGTH は 66 行で、ヘッダのテキスト行は PAGE_WIDTH
桁 (デフォルトは 72 桁) を幅いっぱいに用い 、 ‘yy-mm-dd HH:MM String
Page nnnn’ という形式で出力される。ここで String はまん中におかれる文字
列である。
入力にフォームフィードがあると、そこで出力は改頁される。フォームフィ ー
ドが続くと空のページができる。
段 は 、おのおの等しい幅を持ち、デフォルトではスペースで区切られる。 -J
オプションが指定されない限り、行は常に PAGE_WIDTH で切り捨てられ る 。1
段 の出力では、行の切り捨てはデフォルトでは行われない (切り捨てを行うに
は -W オプションを使う)。
オプション
+FIRST_PAGE[:LAST_PAGE]
--pages=FIRST_PAGE[:LAST_PAGE]
FIRST_PAGE から LAST_PAGE までを出力する。 LAST_PAGE を省略す る
とファイル末尾までを出力する。スキップするページ数を評価するとき
、入力ファイルにあるフォームフィードは改ページとみな さ れ る 。
+FIRST_PAGE があってもなくても、出力のページ番号と行番号は同じで
、入力の最初のページからカウントが開始される (出力ページの最初か
ら ではない)。しかしページ番号の振り方は -N によって変更すること
もできる。
-COLUMN
--columns=COLUMN
FILE それぞれが COLUMN 段の出力になる (デフォルトは 1)。段の幅は
PAGE_WIDTH から自動的に計算され、それぞれのページにおける各段の
行数は調整される。段に入りきらない行は切り捨てられる。 --columns
は -m と同時には指定できない。
-a, --across
そ れ ぞ れ の FILE で、段組みの行の進行方向を縦でなく横にする。
COLUMN は 2 以上でなければならない。段に収まらない行の余計な分は
切り捨てられる。
-c, --show-control-chars
-d, --double-space
行間に空行を挿入する (ダブルスペース表示)。
-e[IN-TABCHAR[IN-TABWIDTH]]
--expand-tabs[=IN-TABCHAR[IN-TABWIDTH]],
入力のタブをスペースに展開する。 IN-TABCHAR は入力のタブ文字を指
定する (省略可: デフォルトは
PR(1) User Commands PR(1)
NAME
pr - convert text files for printing
SYNOPSIS
pr [OPTION]... [FILE]...
DESCRIPTION
Paginate or columnate FILE(s) for printing.
Mandatory arguments to long options are mandatory for short options
too.
+FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]
begin [stop] printing with page FIRST_[LAST_]PAGE
-COLUMN, --columns=COLUMN
output COLUMN columns and print columns down, unless -a is used.
Balance number of lines in the columns on each page.
-a, --across
print columns across rather than down, used together with -COL-
UMN
-c, --show-control-chars
use hat notation (^G) and octal backslash notation
-d, --double-space
double space the output
-D, --date-format=FORMAT
use FORMAT for the header date
-e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]
expand input CHARs (TABs) to tab WIDTH (8)
-F, -f, --form-feed
use form feeds instead of newlines to separate pages (by a
3-line page header with -F or a 5-line header and trailer with-
out -F)
-h, --header=HEADER
use a centered HEADER instead of filename in page header, -h ""
prints a blank line, don’t use -h""
-i[CHAR[WIDTH]], --output-tabs[=CHAR[WIDTH]]
replace spaces with CHARs (TABs) to tab WIDTH (8)
-J, --join-lines
merge full lines, turns off -W line truncation, no column align-
ment, --sep-string[=STRING] sets separators
-l, --length=PAGE_LENGTH
set the page length to PAGE_LENGTH (66) lines (default number of
lines of text 56, and with -F 63)
-m, --merge
print all files in parallel, one in each column, truncate lines,
but join lines of full length with -J
-n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]
number lines, use DIGITS (5) digits, then SEP (TAB), default
counting starts with 1st line of input file
-N, --first-line-number=NUMBER
start counting with NUMBER at 1st line of first page printed
(see +FIRST_PAGE)
-o, --indent=MARGIN
offset each line with MARGIN (zero) spaces, do not affect -w or
-W, MARGIN will be added to PAGE_WIDTH
-r, --no-file-warnings
omit warning when a file cannot be opened
-s[CHAR], --separator[=CHAR]
separate columns by a single character, default for CHAR is the
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa