Find (Windows)
Template:Short description
Template:Lowercase
Script error: No such module "Infobox".Template:Template other Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".
In computing, find is a command in the command-line interpreters (shells) of a number of operating systems. It is used to search for a specific text string in a file or files. The command sends the specified lines to the standard output device.[1][2]
Overview
The find command is a filter to find lines in the input data stream that contain or don't contain a specified string and send these to the output data stream. It does not support wildcard characters.[3]
The command is available in DOS,[4] Digital Research FlexOS,[5] IBM/Toshiba 4690 OS,[6] IBM OS/2,[7] Microsoft Windows,[8] and ReactOS.[9] On MS-DOS, the command is available in versions 2 and later.[10] DR DOS 6.0[11] and Datalight ROM-DOS[12] include an implementation of the find command. The FreeDOS version was developed by Jim Hall and is licensed under the GPL.[13]
The Unix command find performs an entirely different function, analogous to forfiles on Windows. The rough equivalent to the Windows find is the Unix grep.[14]
Syntax
FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]]
Arguments:
"string"This command-line argument specifies the text string to find.[drive:][path]filenameSpecifies a file or files in which to search the specified string.
Flags:
/VDisplays all lines NOT containing the specified string./CDisplays only the count of lines containing the string./NDisplays line numbers with the displayed lines./IIgnores the case of characters when searching for the string.
Note: If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.
Examples
C:\>find "keyword" < inputfilename > outputfilename
C:\>find /V "any string" FileName
See also
- Findstr, Windows and ReactOS command-line tool to search for patterns of text in files.
- find (Unix), a Unix command that finds files by attribute, very different from Windows
find - grep, a Unix command that finds text matching a pattern, similar to Windows
find - forfiles, a Windows command that finds files by attribute, similar to Unix
find - Regular expression
- List of DOS commands
References
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ DR DOS 6.0 User Guide Optimisation and Configuration Tips
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".
Further reading
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
External links
Script error: No such module "Navbox".