home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / utlos2.zip / Doc / strings.doc < prev    next >
Text File  |  1997-07-20  |  2KB  |  47 lines

  1. $Id: strings.doc 1.4 1997/07/20 17:19:23 brian Exp $
  2.  
  3.                   strings.doc : The 'strings' command
  4.                            By: Brian E. Yoder
  5.  
  6.         (c) Copyright International Business Machines Corporation 1997
  7.         All rights reserved.
  8.  
  9. The strings command extracts and shows the printable strings in one or
  10. more files including binary files. It is based on the *ix strings
  11. command, except that it shows offsets in hexadecimal rather than octal.
  12.  
  13. ========================================================================
  14. Usage
  15. ========================================================================
  16.  
  17.         strings [ -a ] [ -o ] [ -number ] [ -s ] [ fspec ... ]
  18.  
  19. The strings command searches one or more files for printable ASCII
  20. strings and writes them to standard output. If no files are specified,
  21. then the command searches standard input in binary mode.
  22.  
  23. The isprint() library function is used to test for printable ASCII
  24. characters. A sequence of printable characters must be terminated
  25. with a null, carriage return, or line feed character to be considered
  26. a valid string.
  27.  
  28. The flags that are supported are similar to those supported by the
  29. standard Unix strings command:
  30.  
  31.     -a  Search the entire file. This flag is present for command-line
  32.         compatibility: this strings command always searches files in
  33.         their entirety.
  34.  
  35.     -o  Also show the offset of each string found. The offset is shown
  36.         in hexadecimal and not octal, unlike the Unix strings command.
  37.  
  38.     -number
  39.          Strings must have a minimum length of 'number' characters
  40.          before they are shown. The default minimum length is 4
  41.          characters.
  42.  
  43.     -s  Descend subdirectories, also.
  44.  
  45.     -S  Search system and hidden files, also.
  46.  
  47.