Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strings.bsd(1) — Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

od(1)

STRINGS(1)

NAME

strings − find the printable strings in an object file

USAGE

strings [ −a ] [ −o ] [ −number ] file . . . 

DESCRIPTION

The strings command looks for ASCII strings, normally defined as “any sequence of four or more printing characters ending with a newline or a null,” in a binary file. 

OPTIONS

−a Examine the initialized data section of the file.  This is the default in the DOMAIN/IX implementation, equivalent to invoking strings with no options. 

−o Print each string preceded by its offset from the base of the file. 

−number Use number, rather than 4, as the minimum string length. 

CAUTIONS

The strings program returns erroneous messages if you attempt to examine a file that is not type uasc (unstructured ASCII) or type obj (object). In particular, strings thinks files of type nil are directories. 

EXAMPLES

The following examples demonstrate typical usages of strings. The file in this case is /bin/nice. 

This example lists the strings: % strings /bin/nice @(#)nice.c 4.2 (Berkeley) 5/22/83 usage: nice [ -n ] command setpriority %

This example lists the strings, along with their offset from the file base: % strings -o /bin/nice
   1674 @(#)nice.c
   1697 4.2 (Berkeley) 5/22/83
   1756 usage: nice [ -n ] command
   1769 setpriority %

RELATED INFORMATION

od(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026