File: strings.1

package info (click to toggle)
manpages-hu 20010119-7
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,264 kB
  • sloc: makefile: 56; lisp: 56
file content (94 lines) | stat: -rw-r--r-- 3,699 bytes parent folder | download | duplicates (3)
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
.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)strings.1	6.11 (Berkeley) 5/9/91
.\"
.Dd 1991 mjus 9.
.Dt STRINGS 1
.Os BSD 3
.Sh NV
.Nm strings
.Nd megtallja a nyomtathat karakterlncokat a fjlokban
.Sh TTEKINTS
.Nm strings
.Op Fl afo
.Op Fl n Ar szm
.Op Ar fjl ...
.Sh LERS
A
.Nm strings
program kirja a megadott fjlokban lv, vagy alaprtelmezsben a szabvnyos bemenetrl olvasott nyomtathat karaktereket.
Alaprtelmezsben a karakterlnc legalbb ngy karakter hossz kell legyen ahhoz, hogy a program kirja.
.Pp
A program a kvetkez opcikat ismeri:
.Bl -tag -width Ds
.It Fl a
Alaprtelmezsben a
.Nm strings
a trgy fjloknak (object files) csak a text s az adat szegmenst vizsglja t.
Az
.Fl a
opci megadsval elrhetjk, hogy a
.Nm strings
a teljes trgy fjlt tnzze.
.It Fl f
Minden karakterlnc el kirja a fjl nevt amiben az megtallhat.
.It Fl n
Megadja a kirand karatteklnc minimlis hosszt, gy ez
.Ar szm
rtk lesz ngy helyett.
.It Fl o
Minden karakterlnc el kirja decimlis szmmal annak helyt a fjlban (az offsetet)
.El
.Pp
A
.Nm strings
hasznos tbbek kztt, ha pl. ismeretlen binris fjlt akarunk azonostani.
.Sh LSD MG
.Xr hexdump 1
.Sh HIBK
A karakterlncokat azonost algoritmus nagyon primitv.
Konkrtan, egyes architektrkon elfordul gpi kd utastsok hasonlthatnak ASCII bjt szekvencikhoz s megtveszthetik az algoritmust.
.Sh KOMPATIBILITS
A
.Nm strings
trtnelmi implementcii csak a trgy fjlok inicializlt adat rszt nztk t. Ez logikus is volt, mert a karakterlncokat normlis esetben ott troltk.
Mivel azta a fordtk fejldtek, ma mr a trgy fjl text rszben is lehetnek karakterlncok, ezrt a 
.Nm strings 
alaprtelmezett viselkedst megvltoztattuk.
.Sh TRTNETE
A
.Nm strings
parancs a
.Bx 3.0
-ben jelent meg.
.Sh MAGYAR FORDTS
Kovcs Emese <emese@eik.bme.hu>