find (Windows)

From Wikipedia, the free encyclopedia
(Redirected from FIND (DOS command))
Jump to navigation Jump to search
find
DevelopersMicrosoft, IBM, DR, Datalight, Novell, Jim Hall, ReactOS Contributors
Initial releaseMarch 1983; 43 years ago (1983-03)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inMS-DOS: x86 assembly language
FreeDOS, ReactOS: C
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemMS-DOS, PC DOS, FlexOS, SISNE plus, DR DOS, ROM-DOS, FreeDOS, 4690 OS, Windows, OS/2, eComStation, ArcaOS, ReactOS
    PlatformCross-platform
    TypeCommand
    LicenseMS-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"
    Text to find. Must be enclosed in quotes. Notably, matching does not support wildcard characters.[14]
    PATH
    File system path to a file. If none specified, the command searches the text from standard input.
    /v
    Display lines not containing the text.
    /c
    Display only the count of matching lines.
    /n
    Display line numbers with matching lines.
    /i
    Ignore the case of characters when searching.

    Examples

    [edit | edit source]

    The following command searches file "Foo" for lines that contain "Important" and prints results to standard output.

    C:\>find "Important" Foo
    

    See also

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    10. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
    11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    12. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    13. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    14. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]