|Developer(s)||Microsoft, IBM, DR, Datalight, Novell, Jim Hall, ReactOS Contributors|
|Initial release||March 1983|
|Written in||MS-DOS: x86 assembly language|
FreeDOS, ReactOS: C
|Operating system||MS-DOS, PC DOS, FlexOS, SISNE plus, DR DOS, ROM-DOS, FreeDOS, 4690 OS, Windows, OS/2, eComStation, ArcaOS, ReactOS|
FreeDOS, ReactOS: GPLv2+
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.
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.
The command is available in DOS, Digital Research FlexOS, IBM/Toshiba 4690 OS, IBM OS/2, Microsoft Windows, and ReactOS. On MS-DOS, the command is available in versions 2 and later. DR DOS 6.0 and Datalight ROM-DOS include an implementation of the
find command. The FreeDOS version was developed by Jim Hall and is licensed under the GPL.
The Unix command
find performs an entirely different function, analogous to
forfiles on Windows. The rough equivalent to the Windows
find is the Unix
FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]]
"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.
/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.
C:\>find "keyword" < inputfilename > outputfilename
C:\>find /V "any string" FileName