Find - Symbol PDT 3200 Technical Reference Manual

Hide thumbs Also See for PDT 3200:
Table of Contents

Advertisement

PDT 3200 Technical Reference Guide
Command
Type
Purpose
FIND is a Þlter to display only lines that contain a speciÞed string.
The input to FIND may come from a Þle, or it may be piped in from another Þlter
or a DOS command.
Syntax
FIND [/ option ] match-string [ filename ]
Options
The /C option causes FIND to only display the count of lines found with the
speciÞed string.
The /N option causes FIND to display the line number of the line found containing
the string.
The /V option causes FIND to display the lines that do not contain the string.
The match-string argument speciÞes the word or group of characters to search for.
The filename argument speciÞes the Þle or group of Þles to search in. The complete
drive and path can be speciÞed. Wildcard characters can be used in the Þlename.
Examples
The following example shows each line in the Þle JUNK.C that contains the
matchstring ÒprintfÓ.
FIND printf junk.c
The following example shows each line in a directory listing that contains a DIR.
The command Þrst executes a DOS DIR command with the output piped into the
FIND command. The FIND command then displays each line that contains the
ÒDIRÓ string.
dir ≠ FIND DIR
The following example give a count of the lines in the Þle MANUAL.TXT that
contain the string ROM-DOS.
5-52

FIND

External

Advertisement

Table of Contents
loading

Table of Contents