请输入您要查询的百科知识:

 

词条 Find (Windows)
释义

  1. Overview

  2. Syntax

  3. Example

  4. See also

  5. References

{{lowercase}}{{Infobox Software
| name = find
| logo =
| screenshot =
| screenshot size =
| caption =
| developer = Digital Research, Microsoft, IBM, Jim Hall, ReactOS Contributors
| released =
| latest release version =
| latest release date =
| operating system = DOS, FlexOS, 4690 OS, Microsoft Windows, OS/2, ReactOS
| genre = Command
| license =
| website =
}}

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

The FreeDOS version was developed by Jim Hall.[7] 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.[8]

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" ][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

1. ^{{Citation | last1 = Jamsa | first1 = Kris A. | title = DOS: The Complete Reference | publisher = Osborne McGraw-Hill | page = 206 | year = 1993 | isbn = 0078819040 | url = https://books.google.com/books?id=UW9GAAAAYAAJ | postscript= .}}
2. ^http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
3. ^https://archive.org/details/4690OSV6r2UsersGuide/page/n169
4. ^https://technet.microsoft.com/en-us/library/bb490906.aspx Microsoft TechNet Find article
5. ^{{Cite web|first1=Tim|last1=Paterson|authorlink1=Tim Paterson|title=Microsoft DOS V1.1 and V2.0: /msdos/v20source/FIND.ASM|url=http://www.computerhistory.org/atchm/microsoft-research-license-agreement-msdos-v1-1-v2-0/|publisher=Computer History Museum, Microsoft|date=2013-12-19|origyear=1983|accessdate=2015-10-01}}
6. ^{{Cite web|url=http://www.computerhistory.org/atchm/microsoft-ms-dos-early-source-code/|title=Microsoft MS-DOS early source code|series=Software Gems: The Computer History Museum Historical Source Code Series|first=Len|last=Shustek|date=2014-03-24|accessdate=2015-10-01}}
7. ^http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/find.html
8. ^https://www.tipsandtricks-hq.com/equivalent-of-unix-grep-command-in-doswindows-726
{{Windows commands}}{{storage-software-stub}}{{windows-stub}}

5 : External DOS commands|OS/2 commands|Microcomputer software|Windows administration|Pattern matching

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/23 10:16:42