FIND

Section: Misc. Reference Manual Pages (utility )
Index Return to Main Contents
 

NAME

FIND - Locates occurences of a string in a text file  

SYNOPSIS

FIND [/C] [/I] [/N] [/Q] [/V] string file..  

DESCRIPTION

FIND locates and displays all occurrences of a specified string in the text file(s). FIND examines each line of the text file(s), and prints each line containing the string.

If no file is specified on the command line, FIND will filter standard input for occurrences of the string. Data may be piped or redirected into FIND.  

OPTIONS

/C - Counts the number of occurrences of the string only.

/I - Ignores the case of the string when matching.

/N - Displays the line number of each line where the string is found.

/Q - Suppresses the header line that identifies the file being searched.

/V - Prints all lines in the file that do NOT contain the string.

 

AUTHOR

(C) 1995 James Hall, modified by Morgan "Hannibal" Toal  

EXAMPLES

The following commands are equivelant in that they all search a file called FOO.TXT for lines containing the word "boogers".


       FIND boogers foo.txt


       TYPE foo.txt | FIND boogers


       FIND boogers < foo.txt


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
AUTHOR
EXAMPLES

This document was created by man2html, using the manual pages.
Time: 19:44:26 GMT, February 07, 2023