find (Windows)
In computing, find
is a command in the command line interpreters (shells) of DOS[1], FlexOS[2], OS/2, Microsoft Windows[3], and ReactOS. 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.[4][5]
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
.[6]
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:
"string"
This command-line argument specifies the text string to find.[drive:][path]filename
Specifies a file or files in which to search the specified string.
Flags:
/V
Displays all lines NOT containing the specified string./C
Displays only the count of lines containing the string./N
Displays line numbers with the displayed lines./I
Ignores 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.
Example
find "keyword" < inputfilename > outputfilename
See also
- 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
- Wildcard character
- List of DOS commands
References
- ↑ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040.
- ↑ http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
- ↑ https://technet.microsoft.com/en-us/library/bb490906.aspx Microsoft TechNet Find article
- ↑ 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.
- ↑ 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.
- ↑ https://www.tipsandtricks-hq.com/equivalent-of-unix-grep-command-in-doswindows-726
This article is issued from
Wikipedia.
The text is licensed under Creative Commons - Attribution - Sharealike.
Additional terms may apply for the media files.