find (command)

In computing, find is a command in the command line interpreters (shells) of DOS,[1] OS/2 and Microsoft Windows.[2] 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.[3][4]

The Unix command find performs an entirely different function analogous to dir /s.

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.

Syntax

FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]]

Arguments:

Flags:

Note: If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.

Example

find "keyword" < inputfilename > outputfilename

See also

References

  1. Template:Citation dtki5ol,mmm9io80tcygxsgmkfhy,h uicikg
  2. http://technet.microsoft.com/en-us/library/bb490906.aspx Microsoft TechNet Find article
  3. Paterson, Tim (2013-12-19) [1983]. "Microsoft DOS V1.1 and V2.0: /msdos/v20source/FIND.ASM". Computer History Museum, Microsoft. Retrieved 2015-10-01.
  4. Shustek, Len (2014-03-24). "Microsoft MS-DOS early source code". Software Gems: The Computer History Museum Historical Source Code Series. Retrieved 2015-10-01.
This article is issued from Wikipedia - version of the 11/14/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.