FRIGN | e51a2e6 | 2015-10-08 17:15:08 +0200 | [diff] [blame] | 1 | .Dd 2015-10-08 |
Hiltjo Posthuma | 4a920a5 | 2015-01-31 14:20:02 +0100 | [diff] [blame] | 2 | .Dt STRINGS 1 |
sin | 0934e7f | 2015-01-31 19:37:03 +0000 | [diff] [blame] | 3 | .Os sbase |
sin | aabcb69 | 2014-11-23 12:44:07 +0000 | [diff] [blame] | 4 | .Sh NAME |
| 5 | .Nm strings |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 6 | .Nd print strings of printable characters in files |
sin | aabcb69 | 2014-11-23 12:44:07 +0000 | [diff] [blame] | 7 | .Sh SYNOPSIS |
Hiltjo Posthuma | 57a19e3 | 2015-01-30 21:17:58 +0100 | [diff] [blame] | 8 | .Nm |
sin | 8ce6d70 | 2015-02-17 13:39:17 +0000 | [diff] [blame] | 9 | .Op Fl a |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 10 | .Op Fl n Ar num |
| 11 | .Op Fl t Ar format |
sin | aabcb69 | 2014-11-23 12:44:07 +0000 | [diff] [blame] | 12 | .Op Ar file ... |
| 13 | .Sh DESCRIPTION |
| 14 | .Nm |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 15 | writes sequences of at least 4 printable characters in each |
| 16 | .Ar file |
| 17 | to stdout. |
| 18 | If no |
| 19 | .Ar file |
| 20 | is given, |
Hiltjo Posthuma | f769c24 | 2015-01-31 14:43:27 +0100 | [diff] [blame] | 21 | .Nm |
| 22 | reads from stdin. |
sin | 8ce6d70 | 2015-02-17 13:39:17 +0000 | [diff] [blame] | 23 | .Sh OPTIONS |
| 24 | .Bl -tag -width Ds |
| 25 | .It Fl a |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 26 | Scan each |
| 27 | .Ar file |
| 28 | entirely. This is the default. |
| 29 | .It Fl n Ar num |
| 30 | Print sequences of at least |
| 31 | .Ar num |
| 32 | characters. The default is 4. |
| 33 | .It Fl t Ar format |
| 34 | Prepend each string with its byte offset, with |
| 35 | .Ar format |
| 36 | being one of |
| 37 | .Sy d , o , x |
| 38 | for decimal, octal or hexadecimal numbers. |
sin | 8ce6d70 | 2015-02-17 13:39:17 +0000 | [diff] [blame] | 39 | .El |
sin | 5c9dc1b | 2014-11-23 12:46:12 +0000 | [diff] [blame] | 40 | .Sh STANDARDS |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 41 | The |
sin | 5c9dc1b | 2014-11-23 12:46:12 +0000 | [diff] [blame] | 42 | .Nm |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 43 | utility is compliant with the |
FRIGN | 57dc7b9 | 2015-03-27 17:22:48 +0100 | [diff] [blame] | 44 | .St -p1003.1-2013 |
FRIGN | e5b5497 | 2015-02-17 17:04:36 +0100 | [diff] [blame] | 45 | specification. |
| 46 | .Pp |
| 47 | The |
| 48 | .Op Fl t |
| 49 | output format has been changed from "%F %s" to "%8lF: %s", with |
| 50 | .Sy F |
| 51 | being one of |
| 52 | .Sy d , o , x . |