encyclopegia.org

Grep

grep is a command-line utility for searching text for lines that match a regular expression. Its name comes from the ed command g/ re /p (global, regular expression, print), which has the same effect. grep was originally developed for the Unix operating system, and is commonly available on Unix-like and some other systems such as OS-9. The shell command that runs the utility has the same name: .

grep is a command-line utility for searching text for lines that match a regular expression. Its name comes from the ed command g/ re /p (global, regular expression, print), which has the same effect. grep was originally developed for the Unix operating system, and is commonly available on Unix-like and some other systems such as OS-9. The shell command that runs the utility has the same name: . ==History== Before it was named, grep was a private utility written by Ken Thompson to search files for certain patterns. Doug McIlroy, 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 s (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. Thompson wrote the first version in PDP-11 assembly language to help Lee E. McMahon analyze the text of The Federalist Papers to determine authorship of the individual papers. The ed text editor (also authored by Thompson) had regular expression 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 random access 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 g/ re /p , where the re is the regular expression to match, would print all lines featuring a specified pattern match. grep was first included in Version 4 Unix. Stating that it is "generally cited as the prototypical software tool", McIlroy credited grep with "irrevocably ingraining" Thompson's tools philosophy in Unix. ==Implementations== A variety of grep implementations are available in many operating systems and software development environments. Early variants included egrep and fgrep , introduced in Version 7 Unix. The egrep variant supports an extended regular expression syntax added by Alfred Aho after Ken Thompson's original regular expression implementation. The fgrep variant searches for any of a list of fixed strings using the Aho–Corasick string matching algorithm. Binaries of these variants exist in modern systems, usually linking to grep or calling grep as a shell script with the appropriate flag added, e.g. . Commands egrep and fgrep , while commonly deployed on POSIX systems, to the point the POSIX specification mentions their widespread existence, are actually not part of POSIX. Other commands contain the word "grep" to indicate they are search tools, typically ones that rely on regular expression matches. The pgrep utility, for instance, displays the processes whose names match a given regular expression. In the Perl programming language, grep is a built-in function that finds elements in a list that satisfy a certain property. This higher-order function is typically named filter or where in other languages. The pcregrep command is an implementation of grep that uses Perl regular expression syntax. Similar functionality can be invoked in the GNU version of grep with the -P flag. Ports of grep (within Cygwin and GnuWin32, for example) also run under Microsoft Windows. Some versions of Windows feature the similar qgrep or findstr command. A grep command is also part of ASCII's MSX-DOS2 Tools for MSX-DOS version 2. The grep , egrep , and fgrep commands have also been ported to the IBM i operating system. The software Adobe InDesign has functions GREP (since CS3 version (2007) ), in the find/change dialog box "GREP" tab, and introduced with InDesign CS4 in paragraph styles "GREP styles". ===agrep=== agrep (approximate grep) is an open-source approximate string matching program, developed by Udi Manber and Sun Wu between 1988 and 1991, for use with Unix. It was ported to OS/2, MS-DOS, and Windows. agrep matches even when the text approximately fits the search pattern. This following invocation finds netmasks in file myfile , but also any other word that can be derived from it, given no more than two substitutions. agrep -2 netmasks myfile This example generates a list of matches with the closest, that is those with the fewest, substitutions listed first. The command flag -B means "best": agrep -B netmasks myfile ==See also== agrep – an approximate string-matching command Boyer–Moore string-search algorithm – search algorithm used in grep find (Unix) – a Unix command that finds files instead of text find (Windows) or findstr – a DOS/Windows command that searches for text in files, similarly to grep List of POSIX commands ngrep – the network grep vgrep – a humorous term for visual inspection ==References== Notes ==External links== GNU Grep official website GNU Grep manual "why GNU grep is fast" - implementation details from GNU grep's author. Command Grep – 25 practical examples

References

  1. Abou-Assaleh, Tony; Wei Ai (March 2004). Survey of Global Regular Expression Print (GREP) Tools (Technical report). Dalhousie University. Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Abou-Assaleh, Tony; Wei Ai (March 2004). Survey of Global Regular Expression Print (GREP) Tools (Technical report). Dalhousie University. Wikipedia revision 1377254368, retrieved 2026-11-18." Abou-Assaleh, Tony; Wei Ai (March 2004). 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1377254368. Accessed 24 November 2026.

    Chicago "Abou-Assaleh, Tony; Wei Ai (March 2004). Survey of Global Regular Expression Print (GREP) Tools (Technical report). Dalhousie University. Wikipedia revision 1377254368, retrieved 2026-11-18." Abou-Assaleh, Tony; Wei Ai (March 2004). 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1377254368.

    APA Abou-Assaleh, Tony; Wei Ai (March 2004). (2026). Abou-Assaleh, Tony; Wei Ai (March 2004). Survey of Global Regular Expression Print (GREP) Tools (Technical report). Dalhousie University. Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377254368

  2. grep · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "grep." 2026-11-17. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html. Accessed 24 November 2026.

    Chicago "grep." 2026-11-17. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html.

    APA encyclopegia.org. (2026). grep. Retrieved November 24, 2026, from http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html

  3. pgrep(1) · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "pgrep(1)." 2026-11-17. http://linux.die.net/man/1/pgrep. Accessed 24 November 2026.

    Chicago "pgrep(1)." 2026-11-17. http://linux.die.net/man/1/pgrep.

    APA encyclopegia.org. (2026). pgrep(1). Retrieved November 24, 2026, from http://linux.die.net/man/1/pgrep

  4. grep · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "grep." 2026-11-17. http://perldoc.perl.org/functions/grep.html. Accessed 24 November 2026.

    Chicago "grep." 2026-11-17. http://perldoc.perl.org/functions/grep.html.

    APA encyclopegia.org. (2026). grep. Retrieved November 24, 2026, from http://perldoc.perl.org/functions/grep.html

  5. pcregrep man page · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "pcregrep man page." 2026-11-17. http://www.pcre.org/original/doc/html/pcregrep.html. Accessed 24 November 2026.

    Chicago "pcregrep man page." 2026-11-17. http://www.pcre.org/original/doc/html/pcregrep.html.

    APA encyclopegia.org. (2026). pcregrep man page. Retrieved November 24, 2026, from http://www.pcre.org/original/doc/html/pcregrep.html

  6. grep(1) · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "grep(1)." 2026-11-17. http://linux.die.net/man/1/grep. Accessed 24 November 2026.

    Chicago "grep(1)." 2026-11-17. http://linux.die.net/man/1/grep.

    APA encyclopegia.org. (2026). grep(1). Retrieved November 24, 2026, from http://linux.die.net/man/1/grep

  7. Spalding, George (2000). Windows 2000 administration . Network professional's library. Osborne/McGraw-Hill. pp. 634 . ISBN 978-0-07-882582-8 . Retrieved 2010-12-10 . QGREP.EXE[:] A similar tool to grep in UNIX, this tool can be used to search for a text string Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2010-12-09 · rev 1377254368
    Cite this reference

    MLA "Spalding, George (2000). Windows 2000 administration . Network professional's library. Osborne/McGraw-Hill. pp. 634 . ISBN 978-0-07-882582-8 . Retrieved 2010-12-10 . QGREP.EXE[:] A similar tool to grep in UNIX, this tool can be used to search for a text string Wikipedia revision 1377254368, retrieved 2026-11-18." Spalding, George (2000). 2010-12-09. https://archive.org/details/windows2000admin0000spal. Accessed 24 November 2026.

    Chicago "Spalding, George (2000). Windows 2000 administration . Network professional's library. Osborne/McGraw-Hill. pp. 634 . ISBN 978-0-07-882582-8 . Retrieved 2010-12-10 . QGREP.EXE[:] A similar tool to grep in UNIX, this tool can be used to search for a text string Wikipedia revision 1377254368, retrieved 2026-11-18." Spalding, George (2000). 2010-12-09. https://archive.org/details/windows2000admin0000spal.

    APA Spalding, George (2000). (2010). Spalding, George (2000). Windows 2000 administration . Network professional's library. Osborne/McGraw-Hill. pp. 634 . ISBN 978-0-07-882582-8 . Retrieved 2010-12-10 . QGREP.EXE[:] A similar tool to grep in UNIX, this tool can be used to search for a text string Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://archive.org/details/windows2000admin0000spal

  8. grep was a private command of mine for quite a while before i made it public. · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "grep was a private command of mine for quite a while before i made it public." 2026-11-17. https://medium.com/@rualthanzauva/grep-was-a-private-command-of-mine-for-quite-a-while-before-i-made-it-public-ken-thompson-a40e24a5ef48. Accessed 24 November 2026.

    Chicago "grep was a private command of mine for quite a while before i made it public." 2026-11-17. https://medium.com/@rualthanzauva/grep-was-a-private-command-of-mine-for-quite-a-while-before-i-made-it-public-ken-thompson-a40e24a5ef48.

    APA encyclopegia.org. (2026). grep was a private command of mine for quite a while before i made it public. Retrieved November 24, 2026, from https://medium.com/@rualthanzauva/grep-was-a-private-command-of-mine-for-quite-a-while-before-i-made-it-public-ken-thompson-a40e24a5ef48

  9. MSX-DOS2 Tools User's Manual by ASCII Corporation · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "MSX-DOS2 Tools User's Manual by ASCII Corporation." 2026-11-17. https://archive.org/details/MSXDOS2TOOLS. Accessed 24 November 2026.

    Chicago "MSX-DOS2 Tools User's Manual by ASCII Corporation." 2026-11-17. https://archive.org/details/MSXDOS2TOOLS.

    APA encyclopegia.org. (2026). MSX-DOS2 Tools User's Manual by ASCII Corporation. Retrieved November 24, 2026, from https://archive.org/details/MSXDOS2TOOLS

  10. IBM System i Version 7.2 Programming Qshell · retrieved 2020-09-04 · rev 1377254368
    Cite this reference

    MLA "IBM System i Version 7.2 Programming Qshell." IBM. 2020-09-04. https://en.wikipedia.org/wiki/IBM. Accessed 24 November 2026.

    Chicago "IBM System i Version 7.2 Programming Qshell." IBM. 2020-09-04. https://en.wikipedia.org/wiki/IBM.

    APA IBM. (2020). IBM System i Version 7.2 Programming Qshell. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/IBM

  11. Review: Adobe InDesign CS3 - CreativePro.com · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Review: Adobe InDesign CS3 - CreativePro.com." "Review: Adobe InDesign CS3 - CreativePro. 2026-11-17. https://creativepro.com/review-adobe-indesign-cs3/. Accessed 24 November 2026.

    Chicago "Review: Adobe InDesign CS3 - CreativePro.com." "Review: Adobe InDesign CS3 - CreativePro. 2026-11-17. https://creativepro.com/review-adobe-indesign-cs3/.

    APA "Review: Adobe InDesign CS3 - CreativePro. (2026). Review: Adobe InDesign CS3 - CreativePro.com. Retrieved November 24, 2026, from https://creativepro.com/review-adobe-indesign-cs3/

  12. InDesign Help: find/change · retrieved 2016-08-11 · rev 1377254368
    Cite this reference

    MLA "InDesign Help: find/change." 2016-08-11. https://helpx.adobe.com/indesign/using/find-change.html. Accessed 24 November 2026.

    Chicago "InDesign Help: find/change." 2016-08-11. https://helpx.adobe.com/indesign/using/find-change.html.

    APA encyclopegia.org. (2016). InDesign Help: find/change. Retrieved November 24, 2026, from https://helpx.adobe.com/indesign/using/find-change.html

  13. InDesign: GREP Styles (1) Setting text between parentheses in Italic · retrieved 2018-01-04 · rev 1377254368
    Cite this reference

    MLA "InDesign: GREP Styles (1) Setting text between parentheses in Italic." 2018-01-04. http://carijansen.com/tip-088/. Accessed 24 November 2026.

    Chicago "InDesign: GREP Styles (1) Setting text between parentheses in Italic." 2018-01-04. http://carijansen.com/tip-088/.

    APA encyclopegia.org. (2018). InDesign: GREP Styles (1) Setting text between parentheses in Italic. Retrieved November 24, 2026, from http://carijansen.com/tip-088/

  14. InDesign Help: GREP styles · retrieved 2016-08-11 · rev 1377254368
    Cite this reference

    MLA "InDesign Help: GREP styles." 2016-08-11. https://helpx.adobe.com/indesign/using/drop-caps-nested-styles.html#create_grep_styles. Accessed 24 November 2026.

    Chicago "InDesign Help: GREP styles." 2016-08-11. https://helpx.adobe.com/indesign/using/drop-caps-nested-styles.html#create_grep_styles.

    APA encyclopegia.org. (2016). InDesign Help: GREP styles. Retrieved November 24, 2026, from https://helpx.adobe.com/indesign/using/drop-caps-nested-styles.html#create_grep_styles

  15. Wu, Sun; Manber, Udi (20–24 January 1992). Agrep -- a fast approximate pattern-matching tool . 1992 Winter USENIX Conference. San Francisco, California. CiteSeerX 10.1.1.89.5424 . {{ cite conference }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Wu, Sun; Manber, Udi (20–24 January 1992). Agrep -- a fast approximate pattern-matching tool . 1992 Winter USENIX Conference. San Francisco, California. CiteSeerX 10.1.1.89.5424 . {{ cite conference }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1377254368, retrieved 2026-11-18." Wu, Sun; Manber, Udi (20–24 January 1992). 2026-11-17. https://en.wikipedia.org/wiki/CiteSeerX_(identifier). Accessed 24 November 2026.

    Chicago "Wu, Sun; Manber, Udi (20–24 January 1992). Agrep -- a fast approximate pattern-matching tool . 1992 Winter USENIX Conference. San Francisco, California. CiteSeerX 10.1.1.89.5424 . {{ cite conference }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1377254368, retrieved 2026-11-18." Wu, Sun; Manber, Udi (20–24 January 1992). 2026-11-17. https://en.wikipedia.org/wiki/CiteSeerX_(identifier).

    APA Wu, Sun; Manber, Udi (20–24 January 1992). (2026). Wu, Sun; Manber, Udi (20–24 January 1992). Agrep -- a fast approximate pattern-matching tool . 1992 Winter USENIX Conference. San Francisco, California. CiteSeerX 10.1.1.89.5424 . {{ cite conference }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/CiteSeerX_(identifier)

  16. New words list December 2003 · retrieved 2021-12-05 · rev 1377254368
    Cite this reference

    MLA "New words list December 2003." 2021-12-05. https://www.oed.com/information/updates/previous-updates/2003-2/december-2003/. Accessed 24 November 2026.

    Chicago "New words list December 2003." 2021-12-05. https://www.oed.com/information/updates/previous-updates/2003-2/december-2003/.

    APA encyclopegia.org. (2021). New words list December 2003. Retrieved November 24, 2026, from https://www.oed.com/information/updates/previous-updates/2003-2/december-2003/

  17. Documentation · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Documentation." Jargon File , article "Documentation" Wikipedia revision 1377254368, retrieved 2026-11-18. 2026-11-17. https://en.wikipedia.org/wiki/Jargon_File. Accessed 24 November 2026.

    Chicago "Documentation." Jargon File , article "Documentation" Wikipedia revision 1377254368, retrieved 2026-11-18. 2026-11-17. https://en.wikipedia.org/wiki/Jargon_File.

    APA Jargon File , article "Documentation" Wikipedia revision 1377254368, retrieved 2026-11-18. (2026). Documentation. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Jargon_File

  18. On the Early History and Impact of Unix Tools to Build the Tools for a New Millennium · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "On the Early History and Impact of Unix Tools to Build the Tools for a New Millennium." Hauben, Michael ; Hauben, Ronda (1997). 2026-11-17. https://en.wikipedia.org/wiki/Michael_Hauben. Accessed 24 November 2026.

    Chicago "On the Early History and Impact of Unix Tools to Build the Tools for a New Millennium." Hauben, Michael ; Hauben, Ronda (1997). 2026-11-17. https://en.wikipedia.org/wiki/Michael_Hauben.

    APA Hauben, Michael ; Hauben, Ronda (1997). (2026). On the Early History and Impact of Unix Tools to Build the Tools for a New Millennium. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Michael_Hauben

  19. Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts . Galactic Industrial Limited. ISBN 0-9519228-0-7 . Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts . Galactic Industrial Limited. ISBN 0-9519228-0-7 . Wikipedia revision 1377254368, retrieved 2026-11-18." Paul S. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts . Galactic Industrial Limited. ISBN 0-9519228-0-7 . Wikipedia revision 1377254368, retrieved 2026-11-18." Paul S. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Paul S. (2026). Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts . Galactic Industrial Limited. ISBN 0-9519228-0-7 . Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  20. VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). YouTube. 6 May 2019. Archived from the original on 2021-12-11. (35 mins) Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). YouTube. 6 May 2019. Archived from the original on 2021-12-11. (35 mins) Wikipedia revision 1377254368, retrieved 2026-11-18." VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). 2026-11-17. https://www.youtube.com/watch?v=EY6q5dv_B-o. Accessed 24 November 2026.

    Chicago "VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). YouTube. 6 May 2019. Archived from the original on 2021-12-11. (35 mins) Wikipedia revision 1377254368, retrieved 2026-11-18." VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). 2026-11-17. https://www.youtube.com/watch?v=EY6q5dv_B-o.

    APA VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). (2026). VCF East 2019 -- Brian Kernighan interviews Ken Thompson (video). YouTube. 6 May 2019. Archived from the original on 2021-12-11. (35 mins) Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://www.youtube.com/watch?v=EY6q5dv_B-o

  21. Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedia revision 1377254368, retrieved 2026-11-18." Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedi. 2026-11-17. https://www.youtube.com/watch?v=NTfOnGZUZDk. Accessed 24 November 2026.

    Chicago "Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedia revision 1377254368, retrieved 2026-11-18." Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedi. 2026-11-17. https://www.youtube.com/watch?v=NTfOnGZUZDk.

    APA Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedi. (2026). Computerphile, Where GREP Came From Archived 2018-11-11 at the Wayback Machine , interview with Brian Kernighan Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://www.youtube.com/watch?v=NTfOnGZUZDk

  22. ed regexes · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "ed regexes." 2026-11-17. https://web.archive.org/web/20171020031534/https://perl.plover.com/classes/HoldSpace/samples/slide012.html. Accessed 24 November 2026.

    Chicago "ed regexes." 2026-11-17. https://web.archive.org/web/20171020031534/https://perl.plover.com/classes/HoldSpace/samples/slide012.html.

    APA encyclopegia.org. (2026). ed regexes. Retrieved November 24, 2026, from https://web.archive.org/web/20171020031534/https://perl.plover.com/classes/HoldSpace/samples/slide012.html

  23. How Grep Got its Name · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "How Grep Got its Name." 2026-11-17. https://web.archive.org/web/20170809155158/https://robots.thoughtbot.com/how-grep-got-its-name. Accessed 24 November 2026.

    Chicago "How Grep Got its Name." 2026-11-17. https://web.archive.org/web/20170809155158/https://robots.thoughtbot.com/how-grep-got-its-name.

    APA encyclopegia.org. (2026). How Grep Got its Name. Retrieved November 24, 2026, from https://web.archive.org/web/20170809155158/https://robots.thoughtbot.com/how-grep-got-its-name

  24. A Tale of Two Greps · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "A Tale of Two Greps." Hume, Andrew (1988). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A Tale of Two Greps." Hume, Andrew (1988). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Hume, Andrew (1988). (2026). A Tale of Two Greps. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  25. Meurant, Gerard (12 Sep 1990). Algorithms and Complexity . Elsevier Science. p. 278. ISBN 9780080933917 . Archived from the original on 4 March 2016 . Retrieved 12 December 2015 . Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Meurant, Gerard (12 Sep 1990). Algorithms and Complexity . Elsevier Science. p. 278. ISBN 9780080933917 . Archived from the original on 4 March 2016 . Retrieved 12 December 2015 . Wikipedia revision 1377254368, retrieved 2026-11-18." Meurant, Gerard (12 Sep 1990). 2026-11-17. https://books.google.com/books?id=6WriBQAAQBAJ. Accessed 24 November 2026.

    Chicago "Meurant, Gerard (12 Sep 1990). Algorithms and Complexity . Elsevier Science. p. 278. ISBN 9780080933917 . Archived from the original on 4 March 2016 . Retrieved 12 December 2015 . Wikipedia revision 1377254368, retrieved 2026-11-18." Meurant, Gerard (12 Sep 1990). 2026-11-17. https://books.google.com/books?id=6WriBQAAQBAJ.

    APA Meurant, Gerard (12 Sep 1990). (2026). Meurant, Gerard (12 Sep 1990). Algorithms and Complexity . Elsevier Science. p. 278. ISBN 9780080933917 . Archived from the original on 4 March 2016 . Retrieved 12 December 2015 . Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://books.google.com/books?id=6WriBQAAQBAJ

  26. Proper Searching · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "Proper Searching." S. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1377254368. Accessed 24 November 2026.

    Chicago "Proper Searching." S. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1377254368.

    APA S. (2026). Proper Searching. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377254368

  27. grep · retrieved 2006-06-28 · rev 1377254368
    Cite this reference

    MLA "grep." Raymond, Eric. 2006-06-28. https://en.wikipedia.org/wiki/Eric_S._Raymond. Accessed 24 November 2026.

    Chicago "grep." Raymond, Eric. 2006-06-28. https://en.wikipedia.org/wiki/Eric_S._Raymond.

    APA Raymond, Eric. (2006). grep. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Eric_S._Raymond

  28. a b c Kernighan, Brian (1984). The Unix Programming Environment . Prentice Hall. pp. 102 . ISBN 0-13-937681-X . Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "a b c Kernighan, Brian (1984). The Unix Programming Environment . Prentice Hall. pp. 102 . ISBN 0-13-937681-X . Wikipedia revision 1377254368, retrieved 2026-11-18." a b c Kernighan, Brian (1984). 2026-11-17. https://archive.org/details/unixprogramminge0000kern/page/102. Accessed 24 November 2026.

    Chicago "a b c Kernighan, Brian (1984). The Unix Programming Environment . Prentice Hall. pp. 102 . ISBN 0-13-937681-X . Wikipedia revision 1377254368, retrieved 2026-11-18." a b c Kernighan, Brian (1984). 2026-11-17. https://archive.org/details/unixprogramminge0000kern/page/102.

    APA a b c Kernighan, Brian (1984). (2026). a b c Kernighan, Brian (1984). The Unix Programming Environment . Prentice Hall. pp. 102 . ISBN 0-13-937681-X . Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://archive.org/details/unixprogramminge0000kern/page/102

  29. a b McIlroy, M. D. (1987). A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 (PDF) (Technical report). CSTR. Bell Labs. 139. Archived (PDF) from the original on 2017-11-11. Wikipedia revision 1377254368, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1377254368
    Cite this reference

    MLA "a b McIlroy, M. D. (1987). A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 (PDF) (Technical report). CSTR. Bell Labs. 139. Archived (PDF) from the original on 2017-11-11. Wikipedia revision 1377254368, retrieved 2026-11-18." a b McIlroy, M. 2026-11-17. https://en.wikipedia.org/wiki/Doug_McIlroy. Accessed 24 November 2026.

    Chicago "a b McIlroy, M. D. (1987). A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 (PDF) (Technical report). CSTR. Bell Labs. 139. Archived (PDF) from the original on 2017-11-11. Wikipedia revision 1377254368, retrieved 2026-11-18." a b McIlroy, M. 2026-11-17. https://en.wikipedia.org/wiki/Doug_McIlroy.

    APA a b McIlroy, M. (2026). a b McIlroy, M. D. (1987). A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 (PDF) (Technical report). CSTR. Bell Labs. 139. Archived (PDF) from the original on 2017-11-11. Wikipedia revision 1377254368, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doug_McIlroy

Cite this article

MLA

"Grep." encyclopegia.org, 2026, https://encyclopegia.org/wiki/grep. Accessed 24 November 2026.

Chicago

"Grep." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/grep.

APA

encyclopegia.org. (2026). Grep. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/grep

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Chmod

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377254368 · 0.5 · snapshot enwiki-001377254368

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.