.\" $FreeBSD$ .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 .\" .\" Standard preamble: .\" ======================================================================== .de Sh \" Subsection heading .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. | will give a .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to .\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' .\" expand to `' in nroff, nothing in troff, for use with C<>. .tr \(*W-|\(bv\*(Tr .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .\" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .hy 0 .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "STRINGS 1" .TH STRINGS 1 "2004-04-09" "binutils-2.14.91" "GNU Development Tools" .SH 名称 strings \- ファイル内の表示可能な文字列を表示する .SH 書式 strings [\fB\-afov\fR] [\fB\-\fR\fImin-len\fR] [\fB\-n\fR \fImin-len\fR] [\fB\-\-bytes=\fR\fImin-len\fR] [\fB\-t\fR \fIradix\fR] [\fB\-\-radix=\fR\fIradix\fR] [\fB\-e\fR \fIencoding\fR] [\fB\-\-encoding=\fR\fIencoding\fR] [\fB\-\fR] [\fB\-\-all\fR] [\fB\-\-print\-file\-name\fR] [\fB\-\-target=\fR\fIbfdname\fR] [\fB\-\-help\fR] [\fB\-\-version\fR] \fIfile\fR... .SH 解説 .IX Header "DESCRIPTION" \s-1GNU\s0 \fBstrings\fR は、 \fIfile\fR で与えられたファイルに対して 4 文字 (または下記のオプションで指定された 文字数) 以上続く表示可能な文字で、その直後に表示不可能な文字が続いて いるものを表示します。 デフォルトでは、オブジェクトファイルに対しては 初期化されたセクションとロードされるセクション内の文字列のみを表示します。 それ以外の種類のファイルに対してはファイル全体の文字列を表示します。 .PP \fBstrings\fR は主に非テキストファイルの内容を判別するのに有効です。 .SH オプション .IX Header "OPTIONS" .IP "\fB\-a\fR" 4 .IX Item "-a" .PD 0 .IP "\fB\-\-all\fR" 4 .IX Item "--all" .IP "\fB\-\fR" 4 .IX Item "-" .PD オブジェクトファイルの走査範囲を初期化されたセクションとロードされる セクションだけに限定せず、ファイル全体を調べます。 .IP "\fB\-f\fR" 4 .IX Item "-f" .PD 0 .IP "\fB\-\-print\-file\-name\fR" 4 .IX Item "--print-file-name" .PD 各文字列の前にファイル名を表示します。 .IP "\fB\-\-help\fR" 4 .IX Item "--help" プログラム のオプションの概要を標準出力に出力して終了します。 .IP "\fB\-\fR\fImin-len\fR" 4 .IX Item "-min-len" .PD 0 .IP "\fB\-n\fR \fImin-len\fR" 4 .IX Item "-n min-len" .IP "\fB\-\-bytes=\fR\fImin-len\fR" 4 .IX Item "--bytes=min-len" .PD \fImin-len\fR 文字以上の文字列を出力します。デフォルトは 4 文字です。 .IP "\fB\-o\fR" 4 .IX Item "-o" \fB\-t o\fR と同じです。 \fB\-o\fR が \fB\-t d\fR のように動作する \fBstrings\fR のバージョンもあります。 どちらとも互換になることはできませんので、単に一方を選んだだけです。 .IP "\fB\-t\fR \fIradix\fR" 4 .IX Item "-t radix" .PD 0 .IP "\fB\-\-radix=\fR\fIradix\fR" 4 .IX Item "--radix=radix" .PD 各文字列の前に、ファイル内のオフセット (位置) を出力します。 1 文字からなる引数によりオフセットの表示形式 (\fBo\fR が 8 進、\fBx\fR が 16 進、\fBd\fR が 10 進) を指定します。 .IP "\fB\-e\fR \fIencoding\fR" 4 .IX Item "-e encoding" .PD 0 .IP "\fB\-\-encoding=\fR\fIencoding\fR" 4 .IX Item "--encoding=encoding" .PD みつける文字列のエンコードを選択します。 \&\fIencoding\fR に指定可能な値は、 \&\fBs\fR = 7 ビット単一バイト文字 (\s-1ASCII\s0, \s-1ISO\s0 8859 等。 デフォルト)、 \&\fBS\fR = 8 ビット単一バイト文字、 \&\fBb\fR = 16 ビットのビッグエンディアン、 \&\fBl\fR = 16 ビットのリトルエンディアン、 \&\fBB\fR = 32 ビットのビッグエンディアン、 \&\fBL\fR = 32 ビットのリトルエンディアンです。 ワイド文字の文字列をみつけるのに有用です。 .IP "\fB\-\-target=\fR\fIbfdname\fR" 4 .IX Item "--target=bfdname" システムのデフォルトではないオブジェクトコード形式を指定します。 .IP "\fB\-v\fR" 4 .IX Item "-v" .PD 0 .IP "\fB\-\-version\fR" 4 .IX Item "--version" .PD プログラム のバージョン番号を標準出力に出力して終了します。 .SH 関連項目 .IX Header "SEE ALSO" \&\fIar\fR\|(1), \fInm\fR\|(1), \fIobjdump\fR\|(1), \fIranlib\fR\|(1), \fIreadelf\fR\|(1), Info の \fIbinutils\fR の項。 .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``\s-1GNU\s0 Free Documentation License''. .\" .SH 履歴 .\" 奥村 努 1998/12/11 FreeBSD 用に翻訳 .\" 堀川和雄 2001/08/04 binutil 2.11.2 用に修正 .\" 堀川和雄 2002/12/29 binutil 2.12.91 用に修正