Commit | Line | Data |
---|---|---|
3a1a282a KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
fdb732b2 | 5 | .\" @(#)strings.1 6.1 (Berkeley) %G% |
3a1a282a | 6 | .\" |
fdb732b2 | 7 | .TH STRINGS 1 "" |
3a1a282a KM |
8 | .UC |
9 | .SH NAME | |
10 | strings \- find the printable strings in a object, or other binary, file | |
11 | .SH SYNOPSIS | |
12 | .B strings | |
13 | [ | |
14 | .B \- | |
15 | ] [ | |
16 | .B \-o | |
17 | ] [ | |
18 | \fB\-\fInumber\fR | |
19 | ] file ... | |
20 | .SH DESCRIPTION | |
21 | .I Strings | |
22 | looks for ascii strings in a binary file. | |
23 | A string is any sequence of 4 or more printing characters ending with | |
24 | a newline or a null. | |
25 | Unless the | |
26 | .B \- | |
27 | flag is given, | |
28 | .I strings | |
29 | only looks in the initialized data space of object files. | |
30 | If the | |
31 | .B \-o | |
32 | flag is given, then each string is preceded by its offset in the | |
33 | file (in octal). | |
34 | If the | |
35 | \fB\-\fInumber\fR | |
36 | flag is given then number is used as the minimum string length | |
37 | rather than 4. | |
38 | .PP | |
39 | .I Strings | |
40 | is useful for identifying random object files and many other things. | |
41 | .SH "SEE ALSO" | |
42 | od(1) | |
43 | .SH BUGS | |
44 | The algorithm for identifying strings is extremely primitive |