Knowledge (XXG)

grep

Source đź“ť

568: 2589: 2140: 2162: 27: 207:, unaware of its existence, asked Thompson to write such a program. Responding that he would think about such a utility overnight, Thompson actually corrected bugs and made improvements for about an hour on his own program called 243:
editing, so Thompson excerpted that regexp code into a standalone tool which would instead process arbitrarily long files sequentially without buffering too much into memory. He chose the name because in ed, the command
689: 211:(short for "search"). The next day he presented the program to McIlroy, who said it was exactly what he wanted. Thompson's account may explain the belief that grep was written overnight. 972: 686: 1317: 2634: 317: 2200: 336:, while commonly deployed on POSIX systems, to the point the POSIX specification mentions their widespread existence, are actually not part of POSIX. 581: 2614: 1528: 1002: 1437: 1161: 812: 548:
A common verb usage is the phrase "You can't grep dead trees"—meaning one can more easily search through digital media, using tools such as
573: 519:
This example generates a list of matches with the closest, that is those with the fewest, substitutions listed first. The command flag
339:
Other commands contain the word "grep" to indicate they are search tools, typically ones that rely on regular expression matches. The
1267: 1404: 966: 757: 671: 1092: 842: 1241: 239:
support but could not be used to search through such a large amount of text, as it loaded the entire file into memory to enable
2624: 2619: 2153: 2148: 719: 2639: 362: 2193: 888: 1313: 1062: 280:
implementations are available in many operating systems and software development environments. Early variants included
1521: 1204: 2523: 1486: 110: 2559: 2479: 2125: 2095: 1353: 540: 58: 2629: 2593: 2186: 2110: 86: 1032: 1495: 1122: 2178: 1292: 2212: 2166: 1871: 1540: 1514: 1506: 160: 1501: 356:
is the name of the built-in function that finds elements in a list that satisfy a certain property. This
2209: 1472: 614: 357: 227: 106: 2510: 2041: 1989: 994: 146: 141: 1714: 1704: 937: 820: 779: 382: 297: 236: 164: 129: 1153: 663: 656: 552:, than one could with a hard copy (i.e. one made from "dead trees", which in this context is a 1433: 1400: 1157: 962: 753: 667: 619: 433: 412: 218: 687:“grep was a private command of mine for quite a while before i made it public.” -Ken Thompson 513:, but also any other word that can be derived from it, given no more than two substitutions. 2378: 1941: 1846: 1841: 929: 345:
utility, for instance, displays the processes whose names match a given regular expression.
265: 232: 168: 93: 1174:
QGREP.EXE A similar tool to grep in UNIX, this tool can be used to search for a text string
2574: 2466: 2300: 2120: 2064: 1969: 1770: 1673: 1263: 800: 715: 693: 2569: 2528: 2451: 2408: 2383: 2316: 2260: 2059: 1994: 1979: 1916: 1876: 1755: 1719: 1613: 1425: 1146: 592: 467: 289: 253: 222: 134: 1084: 2608: 2564: 2443: 2295: 2216: 2100: 1961: 1896: 1668: 1643: 1544: 1459: 1233: 850: 240: 2538: 2403: 2290: 2074: 1974: 1891: 1886: 1790: 1699: 1663: 1618: 941: 875: 727: 305: 204: 200: 46: 881:
A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986
956: 2456: 2413: 2398: 2388: 2010: 1984: 1921: 1911: 1901: 1866: 1856: 1851: 1734: 1724: 1678: 1377: 605: 879: 2342: 2240: 1826: 1785: 1588: 1558: 1054: 795: 773: 563: 553: 301: 53: 41: 1430:
Netizens: On the History and Impact of Usenet and the Internet (Perspectives)
599:, a DOS and Windows command that performs text searches, similar to a simple 2533: 2518: 2433: 2418: 2321: 2285: 2255: 2250: 2245: 2115: 2069: 2049: 1946: 1926: 1881: 1729: 1653: 1638: 1623: 1608: 1603: 1598: 1593: 184: 102: 1186: 933: 26: 2474: 2363: 2031: 1811: 1490: 408: 320:. Binaries of these variants exist in modern systems, usually linking to 175:(global regular expression search and print), which has the same effect. 324:
or calling grep as a shell script with the appropriate flag added, e.g.
2484: 1836: 1760: 596: 441: 421: 396: 118: 1480: 1466: 1289:"InDesign: GREP Styles (1) Setting text between parentheses in Italic" 2337: 1821: 1563: 1454: 404: 215: 608:, a Unix command that finds files by attribute, very different from 1024: 385:
syntax. Similar functionality can be invoked in the GNU version of
2423: 2275: 2235: 2230: 2054: 1951: 1931: 1861: 1780: 1683: 1658: 1633: 1583: 1578: 1573: 1568: 1114: 629: 586: 487: 460: 340: 122: 1421:, pages 237–245, Buntingford, UK, 1988. European UNIX User Group. 1288: 2543: 2428: 2373: 2368: 2265: 2105: 2079: 1936: 1831: 1816: 1775: 1765: 1709: 1537: 1152:. Network professional's library. Osborne/McGraw-Hill. pp.  349: 188: 180: 163:
utility for searching plaintext datasets for lines that match a
114: 98: 2182: 1510: 2393: 2358: 2280: 1906: 1806: 1750: 1648: 1212: 1200: 696:, By Benjamin Rualthanzauva, Published on Feb 5, 2014, Medium 2270: 1628: 474:
dialog box "GREP" tab, and introduced with InDesign CS4 in
248:
would print all lines featuring a specified pattern match.
199:
Before it was named, grep was a private utility written by
775:
VCF East 2019 -- Brian Kernighan interviews Ken Thompson
907:
Survey of Global Regular Expression Print (GREP) Tools
470:
has functions GREP (since CS3 version (2007)), in the
231:
to determine authorship of the individual papers. The
308:'s original regular expression implementation. The " 2552: 2509: 2493: 2465: 2442: 2351: 2330: 2309: 2223: 2088: 2040: 2024: 2003: 1960: 1799: 1743: 1692: 1551: 1187:"MSX-DOS2 Tools User's Manual by ASCII Corporation" 498:(approximate grep) matches even when the text only 140: 128: 92: 82: 64: 52: 40: 1145: 655: 1498:- implementation details from GNU grep's author. 415:. Some versions of Windows feature the similar 1338:S. Lee Henry (June 1998). "Proper Searching". 1234:"Review: Adobe InDesign CS3 - CreativePro.com" 260:prototypical software tool", McIlroy credited 183:operating system, but later available for all 2194: 1522: 1205:"IBM System i Version 7.2 Programming Qshell" 8: 1419:Proceedings of the EUUG Spring 88 Conference 920:Hume, Andrew (1988). "A Tale of Two Greps". 649: 647: 645: 19: 1415:Grep wars: The strategic search initiative. 2201: 2187: 2179: 2161: 1529: 1515: 1507: 887:(Technical report). CSTR. Bell Labs. 139. 25: 18: 909:(Technical report). Dalhousie University. 905:Abou-Assaleh, Tony; Wei Ai (March 2004). 870: 868: 264:with "irrevocably ingraining" Thompson's 256:. Stating that it is "generally cited as 16:Unix command line utility for text search 589:, an approximate string-matching command 545:added "grep" as both a noun and a verb. 312:" variant searches for any of a list of 641: 459:commands have also been ported to the 318:Aho–Corasick string matching algorithm 203:to search files for certain patterns. 1432:. Wiley-IEEE Computer Society Press. 1125:from the original on 10 December 2015 1095:from the original on 23 December 2015 1035:from the original on 22 December 2015 1005:from the original on 28 November 2015 7: 1502:Command Grep – 25 practical examples 1065:from the original on 7 December 2015 574:Free and open-source software portal 214:Thompson wrote the first version in 2635:Inferno (operating system) commands 1244:from the original on 5 January 2018 582:Boyer–Moore string-search algorithm 750:The OS-9 Guru - 1 : The Facts 14: 975:from the original on 4 March 2016 961:. Elsevier Science. p. 278. 922:Software: Practice and Experience 179:was originally developed for the 2588: 2587: 2160: 2139: 2138: 894:from the original on 2017-11-11. 782:from the original on 2021-12-11. 658:The Unix Programming Environment 566: 505:This following invocation finds 377:command is an implementation of 235:(also authored by Thompson) had 187:systems and some others such as 1320:from the original on 2016-08-28 1295:from the original on 2017-09-24 1270:from the original on 2016-08-28 955:Meurant, Gerard (12 Sep 1990). 752:. Galactic Industrial Limited. 2615:Unix text processing utilities 1395:Alain Magloire (August 2000). 1354:"New words list December 2003" 778:(video). YouTube. 6 May 2019. 411:, for example) also run under 1: 1475:Programmer's Manual, Volume 1 1397:Grep: Searching for a Pattern 1428:; et al. (April 1997). 1417:In Peter Collinson, editor, 1314:"InDesign Help: GREP styles" 1264:"InDesign Help: find/change" 1148:Windows 2000 administration 1091:. University of Cambridge. 298:extended regular expression 70:; 50 years ago 2656: 662:. Prentice Hall. pp.  485: 167:. Its name comes from the 59:AT&T Bell Laboratories 2583: 2134: 1455:GNU Grep official website 1381:, article "Documentation" 1358:Oxford English Dictionary 1144:Spalding, George (2000). 958:Algorithms and Complexity 705:Hauben et al. 1997, Ch. 9 654:Kernighan, Brian (1984). 541:Oxford English Dictionary 530:agrep -B netmasks myfile 516:agrep -2 netmasks myfile 502:fits the search pattern. 24: 432:command is also part of 843:"How Grep Got its Name" 383:Perl regular expression 2625:Standard Unix programs 2620:Unix SUS2008 utilities 2213:command-line interface 2154:Unix SUS2008 utilities 2149:Standard Unix programs 1541:command-line interface 1496:"why GNU grep is fast" 999:www.pubs.opengroup.org 934:10.1002/spe.4380181105 748:Paul S. Dayan (1992). 538:In December 2003, the 352:programming language, 296:" variant supports an 252:was first included in 2640:IBM i Qshell commands 847:robots.thoughtbot.com 615:List of Unix commands 358:higher-order function 228:The Federalist Papers 2511:Software development 2042:Software development 1059:www.perldoc.perl.org 796:Where GREP Came From 370:in other languages. 225:analyze the text of 1085:"pcregrep man page" 360:is typically named 21: 1001:. The Open Group. 823:on 20 October 2017 692:2015-05-26 at the 632:, the network grep 463:operating system. 326:exec grep -E "$ @" 316:strings using the 237:regular expression 165:regular expression 68:November 1973 42:Original author(s) 2602: 2601: 2176: 2175: 1489:General commands 1439:978-0-8186-7706-9 1399:. Iuniverse Inc. 1342:. pp. 35–26. 1240:. 20 April 2007. 1163:978-0-07-882582-8 1119:www.linux.die.net 1029:www.linux.die.net 799:, interview with 413:Microsoft Windows 219:assembly language 152: 151: 2647: 2591: 2590: 2331:User environment 2203: 2196: 2189: 2180: 2164: 2163: 2142: 2141: 1744:User environment 1531: 1524: 1517: 1508: 1484: 1483: 1470: 1469: 1443: 1410: 1382: 1374: 1368: 1367: 1365: 1364: 1350: 1344: 1343: 1335: 1329: 1328: 1326: 1325: 1310: 1304: 1303: 1301: 1300: 1285: 1279: 1278: 1276: 1275: 1260: 1254: 1253: 1251: 1249: 1230: 1224: 1223: 1221: 1220: 1209: 1197: 1191: 1190: 1183: 1177: 1176: 1171: 1170: 1151: 1141: 1135: 1134: 1132: 1130: 1111: 1105: 1104: 1102: 1100: 1081: 1075: 1074: 1072: 1070: 1051: 1045: 1044: 1042: 1040: 1021: 1015: 1014: 1012: 1010: 991: 985: 984: 982: 980: 952: 946: 945: 917: 911: 910: 902: 896: 895: 893: 886: 872: 863: 862: 860: 858: 853:on 9 August 2017 849:. Archived from 839: 833: 832: 830: 828: 819:. Archived from 809: 803: 791: 785: 783: 770: 764: 763: 745: 739: 738: 736: 735: 726:. Archived from 712: 706: 703: 697: 684: 678: 677: 661: 651: 625: 611: 602: 576: 571: 570: 569: 551: 476:paragraph styles 458: 454: 450: 431: 424: 418: 402: 392: 388: 380: 376: 369: 365: 343: 335: 331: 327: 323: 311: 300:syntax added by 295: 288:, introduced in 287: 283: 279: 266:tools philosophy 263: 251: 210: 178: 174: 157: 94:Operating system 78: 76: 71: 34: 29: 22: 2655: 2654: 2650: 2649: 2648: 2646: 2645: 2644: 2630:Plan 9 commands 2605: 2604: 2603: 2598: 2579: 2548: 2505: 2489: 2461: 2438: 2352:Text processing 2347: 2326: 2305: 2219: 2207: 2177: 2172: 2130: 2084: 2036: 2020: 1999: 1956: 1800:Text processing 1795: 1739: 1688: 1547: 1535: 1479: 1478: 1465: 1464: 1460:GNU Grep manual 1451: 1446: 1440: 1424: 1407: 1394: 1385: 1375: 1371: 1362: 1360: 1352: 1351: 1347: 1337: 1336: 1332: 1323: 1321: 1312: 1311: 1307: 1298: 1296: 1287: 1286: 1282: 1273: 1271: 1262: 1261: 1257: 1247: 1245: 1238:creativepro.com 1232: 1231: 1227: 1218: 1216: 1207: 1199: 1198: 1194: 1185: 1184: 1180: 1168: 1166: 1164: 1143: 1142: 1138: 1128: 1126: 1113: 1112: 1108: 1098: 1096: 1083: 1082: 1078: 1068: 1066: 1053: 1052: 1048: 1038: 1036: 1023: 1022: 1018: 1008: 1006: 993: 992: 988: 978: 976: 969: 954: 953: 949: 919: 918: 914: 904: 903: 899: 891: 884: 874: 873: 866: 856: 854: 841: 840: 836: 826: 824: 817:perl.plover.com 811: 810: 806: 801:Brian Kernighan 793:Computerphile, 792: 788: 772: 771: 767: 760: 747: 746: 742: 733: 731: 714: 713: 709: 704: 700: 694:Wayback Machine 685: 681: 674: 653: 652: 643: 639: 623: 609: 600: 572: 567: 565: 562: 549: 536: 534:Usage as a verb 531: 517: 490: 484: 478:"GREP styles". 456: 452: 448: 429: 420: 416: 400: 390: 386: 378: 374: 367: 361: 341: 333: 329: 325: 321: 309: 293: 285: 281: 277: 274: 272:Implementations 261: 249: 208: 197: 176: 172: 155: 74: 72: 69: 65:Initial release 36: 32: 17: 12: 11: 5: 2653: 2651: 2643: 2642: 2637: 2632: 2627: 2622: 2617: 2607: 2606: 2600: 2599: 2597: 2596: 2584: 2581: 2580: 2578: 2577: 2572: 2567: 2562: 2556: 2554: 2550: 2549: 2547: 2546: 2541: 2536: 2531: 2526: 2521: 2515: 2513: 2507: 2506: 2504: 2503: 2497: 2495: 2491: 2490: 2488: 2487: 2482: 2477: 2471: 2469: 2463: 2462: 2460: 2459: 2454: 2448: 2446: 2444:Shell builtins 2440: 2439: 2437: 2436: 2431: 2426: 2421: 2416: 2411: 2406: 2401: 2396: 2391: 2386: 2381: 2376: 2371: 2366: 2361: 2355: 2353: 2349: 2348: 2346: 2345: 2340: 2334: 2332: 2328: 2327: 2325: 2324: 2319: 2313: 2311: 2307: 2306: 2304: 2303: 2298: 2293: 2288: 2283: 2278: 2273: 2268: 2263: 2258: 2253: 2248: 2243: 2238: 2233: 2227: 2225: 2221: 2220: 2217:shell builtins 2208: 2206: 2205: 2198: 2191: 2183: 2174: 2173: 2171: 2170: 2158: 2157: 2156: 2151: 2135: 2132: 2131: 2129: 2128: 2126:true and false 2123: 2118: 2113: 2108: 2103: 2098: 2092: 2090: 2086: 2085: 2083: 2082: 2077: 2072: 2067: 2062: 2057: 2052: 2046: 2044: 2038: 2037: 2035: 2034: 2028: 2026: 2022: 2021: 2019: 2018: 2013: 2007: 2005: 2001: 2000: 1998: 1997: 1992: 1987: 1982: 1977: 1972: 1966: 1964: 1962:Shell builtins 1958: 1957: 1955: 1954: 1949: 1944: 1939: 1934: 1929: 1924: 1919: 1914: 1909: 1904: 1899: 1894: 1889: 1884: 1879: 1874: 1869: 1864: 1859: 1854: 1849: 1844: 1839: 1834: 1829: 1824: 1819: 1814: 1809: 1803: 1801: 1797: 1796: 1794: 1793: 1788: 1783: 1778: 1773: 1768: 1763: 1758: 1753: 1747: 1745: 1741: 1740: 1738: 1737: 1732: 1727: 1722: 1717: 1712: 1707: 1702: 1696: 1694: 1690: 1689: 1687: 1686: 1681: 1676: 1671: 1666: 1661: 1656: 1651: 1646: 1641: 1636: 1631: 1626: 1621: 1616: 1611: 1606: 1601: 1596: 1591: 1586: 1581: 1576: 1571: 1566: 1561: 1555: 1553: 1549: 1548: 1545:shell builtins 1536: 1534: 1533: 1526: 1519: 1511: 1505: 1504: 1499: 1493: 1476: 1462: 1457: 1450: 1449:External links 1447: 1445: 1444: 1438: 1426:Michael Hauben 1422: 1411: 1405: 1391: 1390: 1389: 1384: 1383: 1369: 1345: 1330: 1305: 1280: 1255: 1225: 1192: 1178: 1162: 1136: 1106: 1076: 1046: 1016: 986: 967: 947: 912: 897: 876:McIlroy, M. D. 864: 834: 804: 786: 765: 758: 740: 707: 698: 679: 672: 640: 638: 635: 634: 633: 627: 617: 612: 603: 593:find (Windows) 590: 584: 578: 577: 561: 558: 535: 532: 529: 515: 486:Main article: 483: 480: 468:Adobe InDesign 438:MSX-DOS2 Tools 290:Version 7 Unix 273: 270: 254:Version 4 Unix 233:ed text editor 223:Lee E. McMahon 196: 193: 150: 149: 144: 138: 137: 135:Cross-platform 132: 126: 125: 96: 90: 89: 84: 80: 79: 66: 62: 61: 56: 50: 49: 44: 38: 37: 30: 15: 13: 10: 9: 6: 4: 3: 2: 2652: 2641: 2638: 2636: 2633: 2631: 2628: 2626: 2623: 2621: 2618: 2616: 2613: 2612: 2610: 2595: 2586: 2585: 2582: 2576: 2573: 2571: 2568: 2566: 2563: 2561: 2558: 2557: 2555: 2553:Miscellaneous 2551: 2545: 2542: 2540: 2537: 2535: 2532: 2530: 2527: 2525: 2522: 2520: 2517: 2516: 2514: 2512: 2508: 2502: 2499: 2498: 2496: 2492: 2486: 2483: 2481: 2478: 2476: 2473: 2472: 2470: 2468: 2464: 2458: 2455: 2453: 2450: 2449: 2447: 2445: 2441: 2435: 2432: 2430: 2427: 2425: 2422: 2420: 2417: 2415: 2412: 2410: 2407: 2405: 2402: 2400: 2397: 2395: 2392: 2390: 2387: 2385: 2382: 2380: 2377: 2375: 2372: 2370: 2367: 2365: 2362: 2360: 2357: 2356: 2354: 2350: 2344: 2341: 2339: 2336: 2335: 2333: 2329: 2323: 2320: 2318: 2315: 2314: 2312: 2308: 2302: 2299: 2297: 2294: 2292: 2289: 2287: 2284: 2282: 2279: 2277: 2274: 2272: 2269: 2267: 2264: 2262: 2259: 2257: 2254: 2252: 2249: 2247: 2244: 2242: 2239: 2237: 2234: 2232: 2229: 2228: 2226: 2222: 2218: 2215:programs and 2214: 2211: 2204: 2199: 2197: 2192: 2190: 2185: 2184: 2181: 2169: 2168: 2159: 2155: 2152: 2150: 2147: 2146: 2145: 2137: 2136: 2133: 2127: 2124: 2122: 2119: 2117: 2114: 2112: 2109: 2107: 2104: 2102: 2099: 2097: 2094: 2093: 2091: 2089:Miscellaneous 2087: 2081: 2078: 2076: 2073: 2071: 2068: 2066: 2063: 2061: 2058: 2056: 2053: 2051: 2048: 2047: 2045: 2043: 2039: 2033: 2030: 2029: 2027: 2025:Documentation 2023: 2017: 2014: 2012: 2009: 2008: 2006: 2002: 1996: 1993: 1991: 1988: 1986: 1983: 1981: 1978: 1976: 1973: 1971: 1968: 1967: 1965: 1963: 1959: 1953: 1950: 1948: 1945: 1943: 1940: 1938: 1935: 1933: 1930: 1928: 1925: 1923: 1920: 1918: 1915: 1913: 1910: 1908: 1905: 1903: 1900: 1898: 1895: 1893: 1890: 1888: 1885: 1883: 1880: 1878: 1875: 1873: 1870: 1868: 1865: 1863: 1860: 1858: 1855: 1853: 1850: 1848: 1845: 1843: 1840: 1838: 1835: 1833: 1830: 1828: 1825: 1823: 1820: 1818: 1815: 1813: 1810: 1808: 1805: 1804: 1802: 1798: 1792: 1789: 1787: 1784: 1782: 1779: 1777: 1774: 1772: 1769: 1767: 1764: 1762: 1759: 1757: 1754: 1752: 1749: 1748: 1746: 1742: 1736: 1733: 1731: 1728: 1726: 1723: 1721: 1718: 1716: 1713: 1711: 1708: 1706: 1703: 1701: 1698: 1697: 1695: 1691: 1685: 1682: 1680: 1677: 1675: 1672: 1670: 1667: 1665: 1662: 1660: 1657: 1655: 1652: 1650: 1647: 1645: 1642: 1640: 1637: 1635: 1632: 1630: 1627: 1625: 1622: 1620: 1617: 1615: 1612: 1610: 1607: 1605: 1602: 1600: 1597: 1595: 1592: 1590: 1587: 1585: 1582: 1580: 1577: 1575: 1572: 1570: 1567: 1565: 1562: 1560: 1557: 1556: 1554: 1550: 1546: 1543:programs and 1542: 1539: 1532: 1527: 1525: 1520: 1518: 1513: 1512: 1509: 1503: 1500: 1497: 1494: 1492: 1488: 1485: â€“  1482: 1477: 1474: 1471: â€“  1468: 1463: 1461: 1458: 1456: 1453: 1452: 1448: 1441: 1435: 1431: 1427: 1423: 1420: 1416: 1413:Hume, Andrew 1412: 1408: 1406:0-595-10039-2 1402: 1398: 1393: 1392: 1387: 1386: 1380: 1379: 1373: 1370: 1359: 1355: 1349: 1346: 1341: 1334: 1331: 1319: 1315: 1309: 1306: 1294: 1290: 1284: 1281: 1269: 1265: 1259: 1256: 1243: 1239: 1235: 1229: 1226: 1215: 1214: 1206: 1202: 1196: 1193: 1189:. April 1993. 1188: 1182: 1179: 1175: 1165: 1159: 1155: 1150: 1149: 1140: 1137: 1124: 1120: 1116: 1110: 1107: 1094: 1090: 1086: 1080: 1077: 1064: 1060: 1056: 1050: 1047: 1034: 1030: 1026: 1020: 1017: 1004: 1000: 996: 990: 987: 974: 970: 968:9780080933917 964: 960: 959: 951: 948: 943: 939: 935: 931: 927: 923: 916: 913: 908: 901: 898: 890: 883: 882: 877: 871: 869: 865: 852: 848: 844: 838: 835: 822: 818: 814: 808: 805: 802: 798: 797: 790: 787: 781: 777: 776: 769: 766: 761: 759:0-9519228-0-7 755: 751: 744: 741: 730:on 2006-06-17 729: 725: 721: 717: 716:Raymond, Eric 711: 708: 702: 699: 695: 691: 688: 683: 680: 675: 673:0-13-937681-X 669: 665: 660: 659: 650: 648: 646: 642: 636: 631: 628: 622:, or "visual 621: 618: 616: 613: 607: 604: 598: 594: 591: 588: 585: 583: 580: 579: 575: 564: 559: 557: 555: 546: 544: 542: 533: 528: 526: 522: 514: 512: 508: 503: 501: 500:approximately 497: 495: 489: 481: 479: 477: 473: 469: 466:The software 464: 462: 445: 443: 439: 435: 426: 423: 414: 410: 406: 398: 394: 384: 371: 364: 359: 355: 351: 346: 344: 337: 319: 315: 307: 303: 299: 291: 276:A variety of 271: 269: 267: 259: 255: 247: 242: 241:random access 238: 234: 230: 229: 224: 220: 217: 212: 206: 202: 194: 192: 190: 186: 182: 170: 166: 162: 158: 148: 145: 143: 139: 136: 133: 131: 127: 124: 120: 116: 112: 108: 104: 100: 97: 95: 91: 88: 85: 81: 67: 63: 60: 57: 55: 51: 48: 45: 43: 39: 28: 23: 2500: 2165: 2143: 2015: 1429: 1418: 1414: 1396: 1376: 1372: 1361:. Retrieved 1357: 1348: 1339: 1333: 1322:. Retrieved 1308: 1297:. Retrieved 1283: 1272:. Retrieved 1258: 1246:. Retrieved 1237: 1228: 1217:. Retrieved 1211: 1195: 1181: 1173: 1167:. Retrieved 1147: 1139: 1127:. Retrieved 1118: 1109: 1097:. Retrieved 1089:www.pcre.org 1088: 1079: 1067:. Retrieved 1058: 1049: 1037:. Retrieved 1028: 1019: 1007:. Retrieved 998: 989: 977:. Retrieved 957: 950: 928:(11): 1063. 925: 921: 915: 906: 900: 880: 855:. Retrieved 851:the original 846: 837: 825:. Retrieved 821:the original 816: 813:"ed regexes" 807: 794: 789: 774: 768: 749: 743: 732:. Retrieved 728:the original 723: 710: 701: 682: 657: 556:for paper). 547: 539: 537: 524: 520: 518: 510: 506: 504: 499: 493: 492: 491: 475: 471: 465: 446: 437: 427: 395: 372: 353: 347: 338: 313: 306:Ken Thompson 275: 257: 245: 226: 213: 205:Doug McIlroy 201:Ken Thompson 198: 161:command-line 154: 153: 54:Developer(s) 47:Ken Thompson 2475:ip/ipconfig 2224:File system 1552:File system 1378:Jargon File 1129:12 December 1099:12 December 1069:12 December 1039:12 December 1009:12 December 979:12 December 724:Jargon File 606:find (Unix) 472:find/change 444:version 2. 31:Example of 2609:Categories 2467:Networking 2144:Categories 1363:2021-12-06 1340:Sun Expert 1324:2016-08-12 1299:2018-01-05 1274:2016-08-12 1219:2020-09-05 1169:2010-12-10 1025:"pgrep(1)" 734:2006-06-29 637:References 554:dysphemism 381:that uses 302:Alfred Aho 83:Written in 2494:Searching 2310:Processes 2004:Searching 1693:Processes 1115:"grep(1)" 784:(35 mins) 425:command. 389:with the 268:in Unix. 185:Unix-like 103:Unix-like 2594:Category 2364:basename 1812:basename 1318:Archived 1293:Archived 1268:Archived 1248:24 April 1242:Archived 1123:Archived 1093:Archived 1063:Archived 1033:Archived 1003:Archived 973:Archived 889:Archived 878:(1987). 857:24 April 827:24 April 780:Archived 690:Archived 560:See also 509:in file 507:netmasks 409:GnuWin32 403:(within 375:pcregrep 221:to help 171:command 130:Platform 2570:fortune 2485:netstat 2480:ip/ping 2409:strings 1917:strings 1837:dirname 1761:logname 1710:crontab 1487:Inferno 1481:grep(1) 1467:grep(1) 942:6395770 597:Findstr 442:MSX-DOS 422:findstr 348:In the 292:. The " 195:History 147:Command 119:MSX-DOS 111:Inferno 75:1973-11 73: ( 35:command 2592:  2338:passwd 2210:Plan 9 1897:printf 1822:csplit 1564:chattr 1491:Manual 1473:Plan 9 1436:  1403:  1160:  1055:"grep" 995:"grep" 965:  940:  756:  720:"grep" 670:  543:Online 523:means 511:myfile 455:, and 405:Cygwin 393:flag. 363:filter 304:after 246:g/re/p 216:PDP-11 173:g/re/p 107:Plan 9 2575:sleep 2539:strip 2424:troff 2404:spell 2301:touch 2291:split 2276:mkdir 2236:chgrp 2231:chmod 2121:sleep 2075:strip 2055:ctags 1990:unset 1970:alias 1952:xargs 1932:troff 1892:patch 1887:paste 1862:iconv 1791:write 1781:uname 1684:umask 1674:touch 1664:split 1659:rmdir 1634:mkdir 1619:fuser 1584:cksum 1579:chgrp 1574:chown 1569:chmod 1388:Notes 1208:(PDF) 938:S2CID 892:(PDF) 885:(PDF) 630:ngrep 620:vgrep 587:agrep 488:agrep 482:agrep 461:IBM i 457:fgrep 453:egrep 434:ASCII 417:qgrep 397:Ports 368:where 342:pgrep 334:fgrep 330:egrep 314:fixed 310:fgrep 294:egrep 286:fgrep 282:egrep 159:is a 123:IBM i 2544:yacc 2501:grep 2457:test 2452:echo 2429:uniq 2414:tail 2399:sort 2389:join 2374:diff 2369:comm 2317:kill 2266:gzip 2261:file 2167:List 2106:expr 2080:yacc 2065:make 2016:grep 2011:find 1995:wait 1985:test 1980:echo 1937:uniq 1922:tail 1912:sort 1902:read 1877:more 1867:join 1857:head 1852:fold 1832:diff 1817:comm 1776:tput 1771:talk 1766:mesg 1756:exit 1735:time 1725:nice 1720:kill 1679:type 1614:file 1538:Unix 1434:ISBN 1401:ISBN 1250:2018 1158:ISBN 1131:2015 1101:2015 1071:2015 1041:2015 1011:2015 981:2015 963:ISBN 859:2018 829:2018 754:ISBN 668:ISBN 624:grep 610:grep 601:grep 550:grep 525:best 496:grep 449:grep 447:The 440:for 430:grep 407:and 401:grep 387:grep 379:grep 373:The 354:grep 350:Perl 332:and 322:grep 284:and 278:grep 262:grep 250:grep 189:OS-9 181:Unix 177:grep 156:grep 142:Type 115:OS-9 99:Unix 33:grep 20:grep 2565:cal 2529:lex 2524:hoc 2394:sed 2384:eqn 2359:awk 2343:who 2296:tee 2281:pwd 2241:cmp 2101:cal 2060:lex 2032:man 1907:sed 1827:cut 1807:awk 1786:who 1751:env 1669:tee 1649:pwd 1644:pax 1589:cmp 1559:cat 1213:IBM 1201:IBM 1154:634 930:doi 664:102 595:or 436:'s 419:or 399:of 366:or 258:the 2611:: 2560:bc 2534:nm 2519:ar 2434:wc 2419:tr 2379:ed 2322:ps 2286:rm 2271:ls 2256:du 2251:dd 2246:cp 2116:od 2111:lp 2096:bc 2070:nm 2050:ar 1975:cd 1947:wc 1942:vi 1927:tr 1882:nl 1872:m4 1847:ex 1842:ed 1730:ps 1715:fg 1705:bg 1700:at 1654:rm 1639:mv 1629:ls 1624:ln 1609:df 1604:du 1599:dd 1594:cp 1356:. 1316:. 1291:. 1266:. 1236:. 1210:. 1203:. 1172:. 1156:. 1121:. 1117:. 1087:. 1061:. 1057:. 1031:. 1027:. 997:. 971:. 936:. 926:18 924:. 867:^ 845:. 815:. 722:. 718:. 666:. 644:^ 527:: 451:, 428:A 391:-P 328:. 191:. 169:ed 121:, 117:, 113:, 109:, 105:, 101:, 2202:e 2195:t 2188:v 1530:e 1523:t 1516:v 1442:. 1409:. 1366:. 1327:. 1302:. 1277:. 1252:. 1222:. 1133:. 1103:. 1073:. 1043:. 1013:. 983:. 944:. 932:: 861:. 831:. 762:. 737:. 676:. 626:" 521:B 494:a 209:s 87:C 77:)

Index


Original author(s)
Ken Thompson
Developer(s)
AT&T Bell Laboratories
C
Operating system
Unix
Unix-like
Plan 9
Inferno
OS-9
MSX-DOS
IBM i
Platform
Cross-platform
Type
Command
command-line
regular expression
ed
Unix
Unix-like
OS-9
Ken Thompson
Doug McIlroy
PDP-11
assembly language
Lee E. McMahon
The Federalist Papers

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

↑