find | |
---|---|
![]() The ReactOS find command | |
Developers | 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 |
Platform | Cross-platform |
Type | Command |
License | MS-DOS: MIT FreeDOS, ReactOS: GPLv2+ |
find
is a shell command that searches for text in files and prints matching lines to standard output. [1] [2]
The command is available in DOS, [3] Digital Research FlexOS, [4] IBM/Toshiba 4690 OS, [5] IBM OS/2, [6] Windows, [7] and ReactOS. [8] On MS-DOS, the command is available in versions 2 and later. [9] DR DOS 6.0 [10] and Datalight ROM-DOS [11] include an implementation of the find
command. The FreeDOS version was developed by Jim Hall and is licensed under the GPL. [12]
Notably, the same-named Unix-based command performs an entirely different function – searching the file system for matching files. This functionality is provided by the forfiles
command in an environment with the command of this article. The Unix-based grep
command provides a function similar to the command of this article. [13]
The command syntax can be described as:
find [/v] [/c] [/n] [/i] "TEXT" [PATH...]
"TEXT"
PATH
/v
/c
/n
/i
The following command searches file "Foo" for lines that contain "Important" and prints results to standard output.
C:\>find "Important" Foo