Usage: od [OPTION]... [FILE]...
or: od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
or: od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
ファイルの明確な表現を標準出力に書き込む. 特に指定がなければ, 8 進数で
表現します. ファイル指定されない, あるいは `-' が指定された場合には,
標準入力を読み込みます.
長いオプションに必須の引数は短いオプションにも必須です.
-A, --address-radix=RADIX ファイルオフセットの表示形式を指定
-j, --skip-bytes=BYTES ファイルの先頭より BYTES 分スキップ
-N, --read-bytes=BYTES limit dump to BYTES input bytes
-S, --strings[=BYTES] output strings of at least BYTES graphic chars
-t, --format=TYPE select output format or formats
-v, --output-duplicates do not use * to mark line suppression
-w, --width[=BYTES] output BYTES bytes per output line
--traditional accept arguments in traditional form
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Traditional format specifications may be intermixed; they accumulate:
-a same as -t a, select named characters, ignoring high-order bit
-b same as -t o1, select octal bytes
-c same as -t c, select ASCII characters or backslash escapes
-d same as -t u2, select unsigned decimal 2-byte units
-f same as -t fF, select floats
-i same as -t dI, select decimal ints
-l same as -t dL, select decimal longs
-o same as -t o2, select octal 2-byte units
-s same as -t d2, select decimal 2-byte units
-x same as -t x2, select hexadecimal 2-byte units
If first and second call formats both apply, the second format is assumed
if the last operand begins with + or (if there are 2 operands) a digit.
An OFFSET operand means -j OFFSET. LABEL is the pseudo-address
at first byte printed, incremented when dump is progressing.
For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal;
suffixes may be . for octal and b for multiply by 512.
TYPE is made up of one or more of these specifications:
a named character, ignoring high-order bit
c ASCII character or backslash escape
d[サイズ] 符号付き10進数 1 整数(integer)のサイズ指定
f[サイズ] 浮動小数点 1 整数(integer)のサイズ指定
o[サイズ] 8進数 1 整数(integer)のサイズ指定
u[サイズ] 符号なし10進数 1 整数(integer)のサイズ指定
x[サイズ] 16進数 1 整数(integer)のサイズ指定
ここでのサイズの指定は数字です. タイプが doux に含まれるなら, サイズに
は,C は sizeof(char) として, S は sizeof(short) として, I は sizeof(int),
または Lは sizeof(long) も指定できます. またタイプが f ならば, さらに
F は sizeof(float) として, D は sizeof(double) として, または
L は sizeof(long double) として指定できます.
RADIX is d for decimal, o for octal, x for hexadecimal or n for none.
BYTES is hexadecimal with 0x or 0X prefix, and may have a multiplier suffix:
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.
Adding a z suffix to any type displays printable characters at the end of each
output line.
Option --string without a number implies 3; option --width without a number
implies 32. By default, od uses -A o -t oS -w16.
Report od bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: od [OPTION]... [FILE]...
or: od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
or: od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
Write an unambiguous representation, octal bytes by default,
of FILE to standard output. With more than one FILE argument,
concatenate them in the listed order to form the input.
With no FILE, or when FILE is -, read standard input.
All arguments to long options are mandatory for short options.
-A, --address-radix=RADIX decide how file offsets are printed
-j, --skip-bytes=BYTES skip BYTES input bytes first
-N, --read-bytes=BYTES limit dump to BYTES input bytes
-S, --strings[=BYTES] output strings of at least BYTES graphic chars
-t, --format=TYPE select output format or formats
-v, --output-duplicates do not use * to mark line suppression
-w, --width[=BYTES] output BYTES bytes per output line
--traditional accept arguments in traditional form
--help display this help and exit
--version output version information and exit
Traditional format specifications may be intermixed; they accumulate:
-a same as -t a, select named characters, ignoring high-order bit
-b same as -t o1, select octal bytes
-c same as -t c, select ASCII characters or backslash escapes
-d same as -t u2, select unsigned decimal 2-byte units
-f same as -t fF, select floats
-i same as -t dI, select decimal ints
-l same as -t dL, select decimal longs
-o same as -t o2, select octal 2-byte units
-s same as -t d2, select decimal 2-byte units
-x same as -t x2, select hexadecimal 2-byte units
If first and second call formats both apply, the second format is assumed
if the last operand begins with + or (if there are 2 operands) a digit.
An OFFSET operand means -j OFFSET. LABEL is the pseudo-address
at first byte printed, incremented when dump is progressing.
For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal;
suffixes may be . for octal and b for multiply by 512.
TYPE is made up of one or more of these specifications:
a named character, ignoring high-order bit
c ASCII character or backslash escape
d[SIZE] signed decimal, SIZE bytes per integer
f[SIZE] floating point, SIZE bytes per integer
o[SIZE] octal, SIZE bytes per integer
u[SIZE] unsigned decimal, SIZE bytes per integer
x[SIZE] hexadecimal, SIZE bytes per integer
SIZE is a number. For TYPE in doux, SIZE may also be C for
sizeof(char), S for sizeof(short), I for sizeof(int) or L for
sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D
for sizeof(double) or L for sizeof(long double).
RADIX is d for decimal, o for octal, x for hexadecimal or n for none.
BYTES is hexadecimal with 0x or 0X prefix, and may have a multiplier suffix:
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.
Adding a z suffix to any type displays printable characters at the end of each
output line.
Option --string without a number implies 3; option --width without a number
implies 32. By default, od uses -A o -t oS -w16.
Report od bugs to bug-coreutils@gnu.org
GNU coreutils home page:
OD(1) OD(1)
名前
od - ファイルを 8 進数 (または他の形式) で出力する
書式
od [-v] [-j BYTES] [-s [LENGTH]] [-t TYPE] [-w WIDTH] [-A RADIX] [-N
BYTES] [--address-radix=RADIX] [--format=TYPE] [--output-duplicates]
[--read-bytes=BYTES] [--skip-bytes=BYTES] [--strings[=LENGTH]]
[--width[=WIDTH]] [FILE...]
od [--help] [--version]
非 POSIX オプション:
od [-abcdfhilox] [FILE...]
od -C [--traditional] [FILE] [[+]OFFSET [[+]LABEL]]
説明
od は FILE それぞれの内容を明確な形式で標準出力に書き出す。 FILE が 1
つも与えられないと標準入力から読み込む。また FILE が ‘-’ だった場合には
、そのファイルには標準入力が用いられる。
出力のそれぞれの行では、まず最も左のカラムに入力ファイルでのオフセッ ト
が 書かれ、ファイルのデータのグループが続く。デフォルトでは od はオフセ
ットを 8 進数で、ファイルのデータのグループは 2 バイトずつ 8 進数で表す
。
オプション
-j BYTES, --skip-bytes=BYTES
整 形・表示する前に入力ファイルの BYTES 分をスキップする。 BYTES
が ‘0x’ または ‘0X’ で始まる場合は 16 進数と解釈される。これ以外
で 先 頭が ‘0’ の場合は 8 進数、それ以外は 10 進数と解釈される。
‘b’ を後置すると BYTES は 512 倍、 ‘k’ なら 1024 倍、 ‘m’ な ら
1048576 倍される。
-s [LENGTH], --strings[=LENGTH]
通常の出力の代わりに、入力の文字列定数 (string constants) のみを
出力する。文字列定数とは、最低 LENGTH の連続した ASCII グラフ ィ
ッ ク (フォーマット) 文字で、 null (ゼロ) バイトによって終端され
ているものである。 LENGTH が省略された場合のデフォルトは 3。短縮
形式 -s は推奨されない。
-t TYPE, --format=TYPE
ファイルデータの出力フォーマットを選択する。 TYPE は文字列で、以
下のタイプ指定文字からなる。1 つの TYPE 文字列中に複数のタイプ指
定文字を書いたり、このオプションを複数回用いると、 od は指定文字
1 つにつき 1 行の出力行を書き出す。行の出力順は指定文字の順番 に
なる。
‘z’ を後置すると、どんな形式指定に対しても、形式指定によって生成
された行に印刷可能文字での ASCII 文字表示を追加する。
a 文字の名前
c ASCII 文字かバックスラッシュ付きのエスケープ文字
d 符号付き 10 進数
f 浮動小数点数
o 8 進数
u 符号無し 10 進数
x 16 進数
‘a’ 形式は空白文字に ‘sp’, 改行文字に ‘nl’, null (ゼロ) バイトに
‘nul’ 等を出力する。‘c’ ではこれらはそれぞれ ‘ ’, ‘\n’, ‘\0’ と
なる。
‘a’ と ‘c’ 以外のタイプについては、入力データから何バイト分を 使
うかを指定できる。これには形式表示文字の後に 10 進の整数を後置す
る。または C コンパイラの組み込みデータ型によってもサイズを指 定
できる。以下のうちのどれかをタイプ指定の後に指定する。
整数 (‘d’, ‘o’, ‘u’, ‘x’) については以下のどれか:
C char
S short
I int
L long
浮動小数点数 (‘f’) については以下のどれか:
F float
D double
L long double
-v, --output-duplicates
直前と同じ内容を持つ行も表示する。デフォルトでは、連続する出力行
が同じ内容である場合には、 od は最初の行のみを表示し、続く行には
省略した旨を伝えるアスタリスク (*) のみを置く。
-w[WIDTH], --width[=WIDTH]
出力ファイルの 1 行あたり WIDTH バイトの入力を表示する。これは出
力タイプに指定した各サイズの公倍数でなければならない。 WIDTH が
省 略された場合のデフォルトは 32。このオプションが指定されなかっ
た場合のデフォルトは 16。短縮形式 -w は推奨されない。
-A RADIX, --address-radix=RADIX
表示されるオフセットの基数を選択する。 RADIX として指定できる の
は以下のうちのどれか:
d 10 進数
o 8 進数 (デフォルト)
x 16 進数
n なし (オフセットを表示しない)
-N BYTES, --read-bytes=BYTES
入力ファイルのうち BYTES に達するまでしか表示しない。 BYTES で前
置・後置される文字は -j オプションと同様に解釈される。
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
非 POSIX オプション
-a 文字の名前を出力する。 -ta と等価。
-b 8 進でバイトを出力する。 -toC と等価。
-c ASCII 文字またはバックスラッシュ付きのエスケープ文字として出力す
る。 -tc と等価。
-d 符号無し 10 進 short として出力する。 -tu2 と等価。
-f float として出力する。 -tfF と等価。
-h 16 進 short として出力する。 -tx2 と等価。
-i 10 進 short として出力する。 -td2 と等価。
-l 10 進 long として出力する。 -td4 と等価。
-o 8 進 short として出力する。 -to2 と等価。
-x 16 進 short として出力する。 -tx2 と等価。
-C, --traditional
POSIX 以前の、オプション以外の引き数のうち、古いバージョンの od
が受け付けたものを認識する。
たとえば以下の書式:
od --traditional [FILE] [[+]OFFSET[.][b] [[+]LABEL[.][b]]]
を使うと、最大 1 つのファイルと、オフセットおよび擬似スタートアド レ ス
LABEL を指定できる。デフォルトでは OFFSET は 8 進数と解釈され、整形・出
力する前にスキップする入力ファイルのバイト数を示す。小数点を付加する と
、 OFFSET は 10 進数とみなされる。 10 進の指定がなく、 offset が ‘0x’
または ‘0X’ で始まる場合は 16 進数と解釈される。 ‘b’ が後置 さ れ る と
offset を 512 倍したバイト分がスキップされる。 LABEL 引き数も OFFSET の
ように解釈されるが、これはスタート地点の擬似アドレスを指定する。擬似 ア
ドレスは通常のアドレスの後に括弧付きで表示される。
注意
プログラムのバグについては bug-textutils@gnu.org に報告してください。
man ページは Ragnar Hojland Espinosa
OD(1) User Commands OD(1)
NAME
od - dump files in octal and other formats
SYNOPSIS
od [OPTION]... [FILE]...
od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
DESCRIPTION
Write an unambiguous representation, octal bytes by default, of FILE to
standard output. With more than one FILE argument, concatenate them in
the listed order to form the input. With no FILE, or when FILE is -,
read standard input.
All arguments to long options are mandatory for short options.
-A, --address-radix=RADIX
decide how file offsets are printed
-j, --skip-bytes=BYTES
skip BYTES input bytes first
-N, --read-bytes=BYTES
limit dump to BYTES input bytes
-S, --strings[=BYTES]
output strings of at least BYTES graphic chars
-t, --format=TYPE
select output format or formats
-v, --output-duplicates
do not use * to mark line suppression
-w, --width[=BYTES]
output BYTES bytes per output line
--traditional
accept arguments in traditional form
--help display this help and exit
--version
output version information and exit
Traditional format specifications may be intermixed; they accumulate:
-a same as -t a, select named characters, ignoring high-order bit
-b same as -t o1, select octal bytes
-c same as -t c, select ASCII characters or backslash escapes
-d same as -t u2, select unsigned decimal 2-byte units
-f same as -t fF, select floats
-i same as -t dI, select decimal ints
-l same as -t dL, select decimal longs
-o same as -t o2, select octal 2-byte units
-s same as -t d2, select decimal 2-byte units
-x same as -t x2, select hexadecimal 2-byte units
If first and second call formats both apply, the second format is
assumed if the last operand begins with + or (if there are 2 operands)
a digit. An OFFSET operand means -j OFFSET. LABEL is the
pseudo-address at first byte printed, incremented when dump is pro-
gressing. For OFFSET and LABEL, a 0x or 0X prefix indicates hexadeci-
mal; suffixes may be . for octal and b for multiply by 512.
TYPE is made up of one or more of these specifications:
a named character, ignoring high-order bit
c ASCII character or backslash escape
d[SIZE]
signed decimal, SIZE bytes per integer
f[SIZE]
floating point, SIZE bytes per integer
o[SIZE]
octal, SIZE bytes per integer
u[SIZE]
unsigned decimal, SIZE bytes per integer
x[SIZE]
hexadecimal, SIZE bytes per integer
SIZE is a number. For TYPE in doux, SIZE may also be C for
sizeof(char), S for sizeof(short), I for sizeof(int) or L for
sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D
for sizeof(double) or L for sizeof(long double).
RADIX is d for decimal, o for octal, x for hexadecimal or n for none.
BYTES is hexadecimal with 0x or 0X prefix, and may have a multiplier
suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB
1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y. Adding
a z suffix to any type displays printable characters at the end of each
output line. Option --string without a number implies 3; option
--width without a number implies 32. By default, od uses -A o -t oS
-w16.
AUTHOR
Written by Jim Meyering.
REPORTING BUGS
Report od bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa