EasyManua.ls Logo

Commodore PC - Find

Commodore PC
414 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MS-DOS
Commands
57
n
Find
fi
Purpose:
Searches
for
a
specific
string
of
text
in
a
file
or
files.
(i
Syntax:
find
[/v]
[/c]
[/n]
"string"
[drive:]\pathname]
M
Comments:
Find
is
a
filter
that
takes
as
options
a
sfrmg
(a
group
of
charac
ters)
and
a
series
of
filenames.
After
searching
the
files
given
on
the
command
line,
find
displays
any
lines
it
has
found
that
con
tain
the
specified
string.
In
your
command
line,
this
string
must
be
enclosed
in
double
quotation
marks.
If
you do
not
specify
a
pathname,
find
takes
input
from
its
standard
input
(usually
the
keyboard)
and
displays
any
lines
that
contain
the
specified
string.
The
switches
for
find
are
as
follows:
/v
Displays
all
lines
not
containing
the
specified
string.
/c
Prints
only
the
count
of
lines
that
contain
a
match
in
each
of
the
files.
/n
Precedes each
line
by
its
relative
line
number
in
the
file.
Note
You
must
type
double
quotation
marks
around
a
string
that
already
has
double
quotation
marks.
Examples:
The
following
command
displays
all
lines
from
a
file
named
pencil,
ad
that
contain
the
string
"Automatic
Pencil
Sharpener":
find
"Automatic
Pencil
Sharpener"
pencil.ad
The
next
command
causes ms-dos
to
display
all
names
of
the
files
on
the
disk
in
drive
B
that
do
not
contain
the
string
"date":
Find
The
Find
switches
dir
b:
8
find
/v
"date"

Related product manuals