[comp.os.vms] Strings Utility

MNK@DRACO.HAC.COM (Michael N. Kimura) (08/09/88)

Stephen Dowdy (UNM CIRT) Albuquerque, New Mexico, 87131 (505) 277-8044 wrote:

> The following *are* in VWS 3.2
> 	cut/pas
> 	Live ico
> Just do a DUMP on SYS$SYSTEM:UIS$VT200_PME.EXE (the vt200 uis emulator)  The
> are also references to REGIS within the 3.2 VT200_PME, though it doesn't lo
> like there's enough there to do anything. (DUMP is the greatest utility f
> determining what an image can do using logicals, when you don't have a manual,
> or the manual is hiding something.  After a couple hundred blocks, your brain
> starts to fry though.  Anyone have a 'strings' utility?)

I   have  written  a  ``strings''  utility  that  looks  through  files  for
consecutive  sequences  of printing ASCII characters.  I find it VERY useful
for scanning "binary" files (like images for logical names).   Some  of  the
features are:

	1) The strings can be separated with either a SPACE or a NEWLINE

	2) The minimum string length defaults to 3 characters but can be
		specified

	3) Tab and Carriage Returns can be considered either printing
		 or non-printing

	4) Headers (containg filename(s)) are displayed by default but
		can be turned off

	5) Wildcard specification are allowed

/*
 * Strings.C -- finds strings in a file (' ' <= c <= '~')
 *
 *	Usage: strings [-hnrt] [-wn] file ...
 *		-h	no filename headers
 *		-n	newline instead of space separating strings
 *		-r	newlines are valid printing characters
 *		-t	tabs are valid printing characters
 *		-wn	set mininum word length to n (default 3)
 *		file(s)	list of filenames (one required)
 */

"Strings.C" will be distributed in one VMS_SHAR file.

---------------------------------------------------------------------------
Michael Kimura

Internet:	mnk%draco@hac2arpa.hac.com
BITnet:		mnk@draco.hac.com
Telephone:	(213) 615-9775

US Mail:
Hughes Aircraft Company (RSG)
MS: R2/A159
P.O. Box 92426
Los Angeles,  CA  90009
---------------------------------------------------------------------------