Knowledge

find (Windows)

Source 📝

24: 652: 1913: 978: 267:
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. It does not support
1657: 2003: 935: 736: 1611: 912: 889: 840: 792: 663: 2107: 2127: 2102: 2097: 1908: 1631: 971: 636: 553: 335: 66: 711: 1737: 2048: 1652: 1234: 858: 339: 247:. It is used to search for a specific text string in a file or files. The command sends the specified lines to the 2122: 2117: 2092: 1777: 1772: 1712: 964: 446:
Note: If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.
236: 111: 807: 557: 582: 2112: 1626: 1365: 1083: 990: 2071: 1576: 1198: 1193: 1188: 1183: 394: 293: 151: 99: 23: 951: 2066: 2061: 1959: 1727: 1477: 1467: 1370: 529: 1858: 1636: 1581: 1088: 956: 904: 628: 232: 195: 190: 1563: 1553: 1304: 819: 524: 268: 178: 1828: 1229: 1146: 1135: 987: 931: 927: 908: 885: 788: 632: 304: 264: 240: 155: 687: 2033: 1571: 1416: 1411: 1401: 1274: 1020: 740: 279: 248: 244: 202: 118: 54: 1993: 1967: 1722: 1621: 1548: 1497: 1487: 1462: 1375: 1360: 1284: 1208: 784: 2023: 1803: 1616: 1591: 1518: 1482: 1457: 1447: 1437: 1345: 1340: 1125: 1093: 1057: 1052: 1047: 881: 183: 2086: 1998: 1687: 1523: 1492: 1314: 1309: 1203: 1140: 1098: 1042: 994: 2018: 2013: 1813: 1808: 1533: 1335: 1036: 549: 622: 1838: 1667: 1319: 1259: 1005: 497: 494:, Windows and ReactOS command-line tool to search for patterns of text in files. 351: 208: 163: 1868: 1767: 1757: 1015: 715: 316: 135: 127: 41: 2043: 1752: 1289: 1130: 561: 500:, a Unix command that finds files by attribute, very different from Windows 320: 301: 222: 58: 46: 781:
Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition
585:. Software Gems: The Computer History Museum Historical Source Code Series 1939: 1898: 1878: 1873: 1863: 1848: 1833: 1798: 1793: 1707: 1702: 1677: 1672: 1601: 1596: 1452: 1421: 1385: 1380: 1350: 1294: 1264: 1254: 1249: 1244: 1239: 1157: 515: 357: 509:, a Unix command that finds text matching a pattern, similar to Windows 2038: 1972: 1944: 1934: 1929: 1903: 1893: 1888: 1843: 1823: 1762: 1747: 1742: 1717: 1697: 1682: 1543: 1162: 1104: 1010: 491: 331: 323: 308: 290: 213: 171: 147: 143: 107: 103: 29: 2028: 1977: 1949: 1818: 1732: 1586: 1502: 1472: 1442: 1279: 1224: 1120: 1073: 761: 312: 282: 167: 139: 131: 123: 95: 62: 518:, a Windows command that finds files by attribute, similar to Unix 2008: 1883: 1853: 1692: 1528: 1406: 1355: 1299: 1269: 1167: 1151: 1114: 1109: 1078: 405:
Specifies a file or files in which to search the specified string.
1662: 1606: 603: 506: 367: 346: 297: 159: 960: 286: 275: 50: 442:
Ignores the case of characters when searching for the string.
952:
Open source FIND implementation that comes with MS-DOS v2.0
808:
DR DOS 6.0 User Guide Optimisation and Configuration Tips
554:"Microsoft DOS V1.1 and V2.0: /msdos/v20source/FIND.ASM" 426:
Displays only the count of lines containing the string.
418:
Displays all lines NOT containing the specified string.
355:
performs an entirely different function, analogous to
841:"ibiblio.org FreeDOS Package -- find (FreeDOS Base)" 315:, the command is available in versions 2 and later. 1986: 1958: 1922: 1786: 1645: 1562: 1511: 1430: 1394: 1328: 1217: 1176: 1066: 1029: 327: 201: 189: 177: 117: 91: 73: 40: 604:"Find - Search for text - Windows CMD - SS64.com" 361:on Windows. The rough equivalent to the Windows 878:Special Edition Using MS-DOS 6.22, Third Edition 859:"Equivalent of UNIX Grep command in Dos/Windows" 434:Displays line numbers with the displayed lines. 972: 8: 16: 979: 965: 957: 22: 15: 541: 924:Windows 2000 Commands Pocket Reference 380:FIND "string" filename] 7: 583:"Microsoft MS-DOS early source code" 899:Kathy Ivens; Brian Proffit (1993). 397:specifies the text string to find. 14: 326:include an implementation of the 820:"Datalight ROM-DOS User's Guide" 712:"JaTomes Help - OS/2 Commands" 1: 274:The command is available in 624:DOS: The Complete Reference 581:Shustek, Len (2014-03-24). 79:; 41 years ago 2144: 338:and is licensed under the 2057: 1001: 334:version was developed by 237:command-line interpreters 21: 472: 453: 378: 2108:Microsoft free software 779:Wolverton, Van (2003). 621:Jamsa, Kris A. (1993), 558:Computer History Museum 2128:Windows administration 2103:Microcomputer software 1030:File system navigation 922:Frisch, Æleen (2001). 662:. 1986. Archived from 479:"any string" 69:, ReactOS Contributors 2098:External DOS commands 2072:Windows Support Tools 2067:Environment variables 901:OS/2 Inside & Out 653:"FlexOS User's Guide" 395:command-line argument 100:x86 assembly language 2062:List of DOS commands 1960:Software development 1787:Maintenance and care 876:Cooper, Jim (2001). 530:List of DOS commands 905:Osborne McGraw-Hill 861:. January 26, 2009. 629:Osborne McGraw-Hill 460:"keyword" 269:wildcard characters 18: 1016:Windows PowerShell 525:Regular expression 212:FreeDOS, ReactOS: 2080: 2079: 937:978-0-596-00148-3 827:www.datalight.com 768:. 3 January 2022. 762:"reactos/reactos" 660:www.bitsavers.org 245:operating systems 243:) of a number of 219: 218: 2135: 2123:Pattern matching 2118:ReactOS commands 2093:Windows commands 1431:User environment 1021:Recovery Console 981: 974: 967: 958: 941: 918: 895: 863: 862: 855: 849: 848: 837: 831: 830: 824: 816: 810: 805: 799: 798: 776: 770: 769: 758: 752: 751: 749: 748: 739:. Archived from 733: 727: 726: 724: 723: 714:. Archived from 708: 702: 701: 699: 698: 684: 678: 677: 675: 674: 668: 657: 649: 643: 642: 618: 612: 611: 600: 594: 593: 591: 590: 578: 572: 571: 569: 568: 546: 521: 512: 503: 480: 476: 468: 464: 461: 457: 440: 432: 424: 416: 403: 391: 370: 364: 360: 354: 329: 280:Digital Research 262: 229: 119:Operating system 87: 85: 80: 34: 26: 19: 2143: 2142: 2138: 2137: 2136: 2134: 2133: 2132: 2083: 2082: 2081: 2076: 2053: 1982: 1954: 1923:Boot management 1918: 1782: 1641: 1558: 1507: 1426: 1390: 1324: 1218:Disk management 1213: 1172: 1067:File management 1062: 1025: 997: 985: 948: 938: 921: 915: 898: 892: 875: 872: 870:Further reading 867: 866: 857: 856: 852: 845:www.ibiblio.org 839: 838: 834: 822: 818: 817: 813: 806: 802: 795: 785:Microsoft Press 778: 777: 773: 760: 759: 755: 746: 744: 735: 734: 730: 721: 719: 710: 709: 705: 696: 694: 686: 685: 681: 672: 670: 666: 655: 651: 650: 646: 639: 631:, p. 206, 620: 619: 615: 602: 601: 597: 588: 586: 580: 579: 575: 566: 564: 552:(2013-12-19) . 548: 547: 543: 538: 519: 510: 501: 488: 483: 482: 478: 474: 471: 470: 469:outputfilename 466: 462: 459: 455: 452: 438: 430: 422: 414: 401: 389: 382: 381: 377: 366: 362: 356: 350: 260: 257: 249:standard output 227: 211: 102: 83: 81: 78: 77:March 1983 74:Initial release 36: 32: 12: 11: 5: 2141: 2139: 2131: 2130: 2125: 2120: 2115: 2110: 2105: 2100: 2095: 2085: 2084: 2078: 2077: 2075: 2074: 2069: 2064: 2058: 2055: 2054: 2052: 2051: 2046: 2041: 2036: 2031: 2026: 2021: 2016: 2011: 2006: 2001: 1996: 1990: 1988: 1984: 1983: 1981: 1980: 1975: 1970: 1964: 1962: 1956: 1955: 1953: 1952: 1947: 1942: 1937: 1932: 1926: 1924: 1920: 1919: 1917: 1916: 1911: 1906: 1901: 1896: 1891: 1886: 1881: 1876: 1871: 1866: 1861: 1856: 1851: 1846: 1841: 1836: 1831: 1826: 1821: 1816: 1811: 1806: 1801: 1796: 1790: 1788: 1784: 1783: 1781: 1780: 1775: 1770: 1765: 1760: 1755: 1750: 1745: 1740: 1735: 1730: 1725: 1720: 1715: 1710: 1705: 1700: 1695: 1690: 1685: 1680: 1675: 1670: 1665: 1660: 1655: 1649: 1647: 1643: 1642: 1640: 1639: 1634: 1629: 1624: 1619: 1614: 1609: 1604: 1599: 1594: 1589: 1584: 1579: 1574: 1568: 1566: 1560: 1559: 1557: 1556: 1551: 1546: 1541: 1536: 1531: 1526: 1521: 1515: 1513: 1509: 1508: 1506: 1505: 1500: 1495: 1490: 1485: 1480: 1475: 1470: 1465: 1460: 1455: 1450: 1445: 1440: 1434: 1432: 1428: 1427: 1425: 1424: 1419: 1414: 1409: 1404: 1398: 1396: 1392: 1391: 1389: 1388: 1383: 1378: 1373: 1368: 1363: 1358: 1353: 1348: 1343: 1338: 1332: 1330: 1326: 1325: 1323: 1322: 1317: 1312: 1307: 1302: 1297: 1292: 1287: 1282: 1277: 1272: 1267: 1262: 1257: 1252: 1247: 1242: 1237: 1232: 1227: 1221: 1219: 1215: 1214: 1212: 1211: 1206: 1201: 1196: 1191: 1186: 1180: 1178: 1174: 1173: 1171: 1170: 1165: 1160: 1155: 1149: 1144: 1138: 1133: 1128: 1123: 1118: 1112: 1107: 1102: 1096: 1091: 1086: 1081: 1076: 1070: 1068: 1064: 1063: 1061: 1060: 1055: 1050: 1045: 1040: 1033: 1031: 1027: 1026: 1024: 1023: 1018: 1013: 1011:Command Prompt 1008: 1002: 999: 998: 995:shell builtins 986: 984: 983: 976: 969: 961: 955: 954: 947: 946:External links 944: 943: 942: 936: 919: 914:978-0078818714 913: 896: 891:978-0789725738 890: 882:Que Publishing 871: 868: 865: 864: 850: 832: 811: 800: 793: 771: 753: 728: 703: 679: 644: 637: 613: 595: 573: 540: 539: 537: 534: 533: 532: 527: 522: 513: 504: 495: 487: 484: 473: 465:inputfilename 454: 451: 448: 444: 443: 435: 427: 419: 407: 406: 398: 379: 376: 373: 256: 253: 217: 216: 205: 199: 198: 193: 187: 186: 184:Cross-platform 181: 175: 174: 121: 115: 114: 93: 89: 88: 75: 71: 70: 44: 38: 37: 27: 13: 10: 9: 6: 4: 3: 2: 2140: 2129: 2126: 2124: 2121: 2119: 2116: 2114: 2113:OS/2 commands 2111: 2109: 2106: 2104: 2101: 2099: 2096: 2094: 2091: 2090: 2088: 2073: 2070: 2068: 2065: 2063: 2060: 2059: 2056: 2050: 2047: 2045: 2042: 2040: 2037: 2035: 2032: 2030: 2027: 2025: 2022: 2020: 2017: 2015: 2012: 2010: 2007: 2005: 2002: 2000: 1997: 1995: 1992: 1991: 1989: 1987:Miscellaneous 1985: 1979: 1976: 1974: 1971: 1969: 1966: 1965: 1963: 1961: 1957: 1951: 1948: 1946: 1943: 1941: 1938: 1936: 1933: 1931: 1928: 1927: 1925: 1921: 1915: 1912: 1910: 1907: 1905: 1902: 1900: 1897: 1895: 1892: 1890: 1887: 1885: 1882: 1880: 1877: 1875: 1872: 1870: 1867: 1865: 1862: 1860: 1857: 1855: 1852: 1850: 1847: 1845: 1842: 1840: 1837: 1835: 1832: 1830: 1827: 1825: 1822: 1820: 1817: 1815: 1814:eventtriggers 1812: 1810: 1807: 1805: 1802: 1800: 1797: 1795: 1792: 1791: 1789: 1785: 1779: 1776: 1774: 1771: 1769: 1766: 1764: 1761: 1759: 1756: 1754: 1751: 1749: 1746: 1744: 1741: 1739: 1736: 1734: 1731: 1729: 1726: 1724: 1721: 1719: 1716: 1714: 1711: 1709: 1706: 1704: 1701: 1699: 1696: 1694: 1691: 1689: 1686: 1684: 1681: 1679: 1676: 1674: 1671: 1669: 1666: 1664: 1661: 1659: 1656: 1654: 1651: 1650: 1648: 1644: 1638: 1635: 1633: 1630: 1628: 1625: 1623: 1620: 1618: 1615: 1613: 1610: 1608: 1605: 1603: 1600: 1598: 1595: 1593: 1590: 1588: 1585: 1583: 1580: 1578: 1575: 1573: 1570: 1569: 1567: 1565: 1561: 1555: 1552: 1550: 1547: 1545: 1542: 1540: 1537: 1535: 1532: 1530: 1527: 1525: 1522: 1520: 1517: 1516: 1514: 1512:File contents 1510: 1504: 1501: 1499: 1496: 1494: 1491: 1489: 1486: 1484: 1481: 1479: 1476: 1474: 1471: 1469: 1466: 1464: 1461: 1459: 1456: 1454: 1451: 1449: 1446: 1444: 1441: 1439: 1436: 1435: 1433: 1429: 1423: 1420: 1418: 1415: 1413: 1410: 1408: 1405: 1403: 1400: 1399: 1397: 1393: 1387: 1384: 1382: 1379: 1377: 1374: 1372: 1369: 1367: 1364: 1362: 1359: 1357: 1354: 1352: 1349: 1347: 1344: 1342: 1339: 1337: 1334: 1333: 1331: 1327: 1321: 1318: 1316: 1313: 1311: 1308: 1306: 1303: 1301: 1298: 1296: 1293: 1291: 1288: 1286: 1283: 1281: 1278: 1276: 1273: 1271: 1268: 1266: 1263: 1261: 1258: 1256: 1253: 1251: 1248: 1246: 1243: 1241: 1238: 1236: 1233: 1231: 1228: 1226: 1223: 1222: 1220: 1216: 1210: 1207: 1205: 1202: 1200: 1197: 1195: 1192: 1190: 1187: 1185: 1182: 1181: 1179: 1175: 1169: 1166: 1164: 1161: 1159: 1156: 1153: 1150: 1148: 1145: 1142: 1139: 1137: 1134: 1132: 1129: 1127: 1124: 1122: 1119: 1116: 1113: 1111: 1108: 1106: 1103: 1100: 1097: 1095: 1092: 1090: 1087: 1085: 1082: 1080: 1077: 1075: 1072: 1071: 1069: 1065: 1059: 1056: 1054: 1051: 1049: 1046: 1044: 1041: 1038: 1035: 1034: 1032: 1028: 1022: 1019: 1017: 1014: 1012: 1009: 1007: 1004: 1003: 1000: 996: 993:programs and 992: 989: 982: 977: 975: 970: 968: 963: 962: 959: 953: 950: 949: 945: 939: 933: 929: 925: 920: 916: 910: 906: 902: 897: 893: 887: 883: 879: 874: 873: 869: 860: 854: 851: 846: 842: 836: 833: 828: 821: 815: 812: 809: 804: 801: 796: 794:0-7356-1812-7 790: 786: 782: 775: 772: 767: 763: 757: 754: 743:on 2017-08-26 742: 738: 732: 729: 718:on 2019-04-14 717: 713: 707: 704: 693: 689: 688:"Users guide" 683: 680: 669:on 2019-09-25 665: 661: 654: 648: 645: 640: 634: 630: 626: 625: 617: 614: 609: 605: 599: 596: 584: 577: 574: 563: 559: 555: 551: 550:Paterson, Tim 545: 542: 535: 531: 528: 526: 523: 517: 514: 508: 505: 499: 496: 493: 490: 489: 485: 449: 447: 441: 436: 433: 428: 425: 420: 417: 412: 411: 410: 404: 399: 396: 392: 387: 386: 385: 374: 372: 369: 359: 353: 348: 343: 341: 337: 333: 330:command. The 325: 322: 318: 314: 310: 306: 303: 299: 295: 292: 288: 284: 281: 277: 272: 270: 266: 263:command is a 254: 252: 250: 246: 242: 238: 234: 230: 224: 215: 210: 206: 204: 200: 197: 194: 192: 188: 185: 182: 180: 176: 173: 169: 165: 161: 157: 153: 149: 145: 141: 137: 133: 129: 125: 122: 120: 116: 113: 109: 105: 101: 97: 94: 90: 76: 72: 68: 64: 60: 56: 52: 48: 45: 43: 39: 31: 25: 20: 1538: 991:command-line 923: 900: 877: 853: 844: 835: 826: 814: 803: 780: 774: 765: 756: 745:. Retrieved 741:the original 731: 720:. Retrieved 716:the original 706: 695:. Retrieved 691: 682: 671:. Retrieved 664:the original 659: 647: 623: 616: 607: 598: 587:. Retrieved 576: 565:. Retrieved 544: 445: 437: 429: 421: 413: 408: 400: 388: 383: 365:is the Unix 344: 273: 258: 226: 220: 42:Developer(s) 1839:pnpunattend 1809:eventcreate 1804:driverquery 1763:ssh-keyscan 1006:COMMAND.COM 692:archive.org 498:find (Unix) 384:Arguments: 164:eComStation 2087:Categories 1869:systeminfo 1758:ssh-keygen 1646:Networking 1290:manage-bde 1260:diskshadow 747:2017-08-26 722:2019-07-20 697:2020-09-14 673:2020-09-14 638:0078819040 589:2015-10-01 567:2015-10-01 536:References 317:DR DOS 6.0 136:SISNE plus 92:Written in 2044:tpmvscmgr 1753:ssh-agent 1658:bitsadmin 1564:Scripting 1329:Processes 1177:Archiving 1131:openfiles 562:Microsoft 481:FileName 321:Datalight 302:Microsoft 223:computing 59:Datalight 47:Microsoft 2019:gpupdate 2014:gpresult 1940:bootsect 1899:wevtutil 1879:typeperf 1874:tracerpt 1864:sxstrace 1849:REAgentC 1834:ntbackup 1799:dispdiag 1794:auditpol 1708:PathPing 1703:nslookup 1678:ipconfig 1673:hostname 1602:forfiles 1453:graftabl 1422:regsvr32 1395:Registry 1386:tasklist 1381:taskkill 1371:shutdown 1366:schtasks 1351:powercfg 1320:vssadmin 1305:scandisk 1295:refsutil 1265:drvspace 1255:diskraid 1250:diskpart 1245:diskcopy 1240:diskcomp 1189:extrac32 1158:robocopy 1143:(rename) 928:O'Reilly 608:ss64.com 516:forfiles 486:See also 477:find /V 450:Examples 402:filename 390:"string" 358:forfiles 349:command 336:Jim Hall 255:Overview 251:device. 207:MS-DOS: 179:Platform 67:Jim Hall 2039:tpmtool 1973:exe2bin 1945:fixboot 1935:bootcfg 1930:bcdedit 1904:winmgmt 1894:wecutil 1889:WBAdmin 1844:pnputil 1829:msiexec 1824:mofcomp 1768:tracert 1748:ssh-add 1718:rpcping 1698:netstat 1683:nbtstat 1637:timeout 1582:cscript 1544:findstr 1230:convert 1199:makecab 1194:extract 1163:takeown 1147:replace 1136:recover 1105:deltree 1101:(erase) 1089:compact 1039:(chdir) 988:Windows 492:Findstr 475:C:\> 456:C:\> 409:Flags: 332:FreeDOS 324:ROM-DOS 309:ReactOS 305:Windows 294:4690 OS 291:Toshiba 235:in the 233:command 203:License 196:Command 172:ReactOS 156:Windows 152:4690 OS 148:FreeDOS 144:ROM-DOS 108:ReactOS 104:FreeDOS 84:1983-03 82: ( 35:command 30:ReactOS 2034:pentnt 2029:MSCDEX 1978:QBasic 1950:fixmbr 1909:winsat 1819:logman 1733:setspn 1668:getmac 1627:prompt 1587:doskey 1572:choice 1503:whoami 1473:setver 1443:cmdkey 1417:regini 1280:fsutil 1275:format 1235:defrag 1225:chkdsk 1184:expand 1121:mklink 1110:icacls 1084:cipher 1074:attrib 934:  911:  888:  791:  766:GitHub 737:"Find" 635:  375:Syntax 313:MS-DOS 307:, and 296:, IBM 283:FlexOS 265:filter 241:shells 214:GPLv2+ 168:ArcaOS 140:DR DOS 132:FlexOS 128:PC DOS 124:MS-DOS 96:MS-DOS 63:Novell 2009:dpath 1994:break 1968:debug 1884:w32tm 1854:relog 1778:winrs 1773:winrm 1723:route 1693:netsh 1622:pause 1549:print 1529:edlin 1498:where 1488:title 1407:ftype 1402:assoc 1376:start 1356:runas 1300:subst 1285:label 1270:fdisk 1168:xcopy 1152:rmdir 1115:mkdir 1079:cacls 1053:pushd 823:(PDF) 667:(PDF) 656:(PDF) 458:find 393:This 311:. On 231:is a 2024:help 2004:dism 1914:wmic 1738:sftp 1713:ping 1663:curl 1617:more 1607:goto 1592:echo 1577:clip 1554:type 1539:find 1524:edit 1519:comp 1483:time 1478:setx 1463:path 1458:mode 1448:date 1438:chcp 1346:kill 1341:exit 1154:(rd) 1126:move 1117:(md) 1094:copy 1058:tree 1048:popd 932:ISBN 909:ISBN 886:ISBN 789:ISBN 633:ISBN 520:find 511:find 507:grep 502:find 467:> 463:< 368:grep 363:find 352:find 347:Unix 345:The 328:find 319:and 298:OS/2 261:find 259:The 228:find 191:Type 160:OS/2 33:find 28:The 17:find 2049:wsl 1999:cls 1859:sfc 1743:ssh 1728:scp 1688:net 1653:arp 1632:rem 1597:for 1493:ver 1468:set 1412:reg 1315:vol 1310:sys 1209:tar 1204:pax 1141:ren 1099:del 1043:dir 340:GPL 287:IBM 276:DOS 221:In 209:MIT 51:IBM 2089:: 1612:if 1534:fc 1361:sc 1336:at 1037:cd 930:. 926:. 907:. 903:. 884:. 880:. 843:. 825:. 787:. 783:. 764:. 690:. 658:. 627:, 606:. 560:, 556:. 439:/I 431:/N 423:/C 415:/V 371:. 342:. 300:, 285:, 278:, 271:. 225:, 170:, 166:, 162:, 158:, 154:, 150:, 146:, 142:, 138:, 134:, 130:, 126:, 110:: 106:, 98:: 65:, 61:, 57:, 55:DR 53:, 49:, 980:e 973:t 966:v 940:. 917:. 894:. 847:. 829:. 797:. 750:. 725:. 700:. 676:. 641:. 610:. 592:. 570:. 289:/ 239:( 112:C 86:)

Index


ReactOS
Developer(s)
Microsoft
IBM
DR
Datalight
Novell
Jim Hall
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

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.