Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Grep
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Unix command line utility for text search}} {{lowercase title}} {{Infobox software | name = grep | title = grep | screenshot = Grep example.png<!-- Image name is enough --> | caption = Example of grep command | screenshot size = 300px | screenshot alt = | collapsible = | author = [[Ken Thompson]]<ref name=history102>{{cite book|last=Kernighan|first=Brian|title=The Unix Programming Environment|year=1984|publisher=Prentice Hall|isbn=0-13-937681-X|pages=[https://archive.org/details/unixprogramminge0000kern/page/102 102]|url-access=registration|url=https://archive.org/details/unixprogramminge0000kern/page/102}}</ref><ref>[https://medium.com/@rualthanzauva/grep-was-a-private-command-of-mine-for-quite-a-while-before-i-made-it-public-ken-thompson-a40e24a5ef48 βgrep was a private command of mine for quite a while before i made it public.β -Ken Thompson] {{webarchive|url=https://web.archive.org/web/20150526111054/https://medium.com/@rualthanzauva/grep-was-a-private-command-of-mine-for-quite-a-while-before-i-made-it-public-ken-thompson-a40e24a5ef48 |date=2015-05-26 }}, By Benjamin Rualthanzauva, Published on Feb 5, 2014, Medium</ref> | developer = [[AT&T Bell Laboratories]] | released = {{Start date and age|1973|11}}<ref name=history102 /> | programming language = [[C (programming language)|C]] | operating system = [[Unix]], [[Unix-like]], [[Plan 9 from Bell Labs|Plan 9]], [[Inferno (operating system)|Inferno]], [[OS-9]], [[MSX-DOS]], [[IBM i]] | platform = | genre = [[Command (computing)|Command]] | license = | standard = | AsOf = }} '''grep''' is a [[command line interface|command-line]] utility for searching plaintext datasets for lines that match a [[regular expression]]. Its name comes from the [[ed (text editor)|ed]] command <code>g/re/p</code> (global regular expression search and print), which has the same effect.<ref>Hauben et al. 1997, Ch. 9</ref><ref name="etymology">{{Cite web |url=http://www.catb.org/~esr/jargon/html/G/grep.html |title=grep |access-date=2006-06-29 |last=Raymond |first=Eric |author-link=Eric S. Raymond |work=Jargon File |url-status=dead |archive-url=https://web.archive.org/web/20060617052845/http://www.catb.org/~esr/jargon/html/G/grep.html |archive-date=2006-06-17 }}</ref> grep was originally developed for the [[Unix]] operating system, but later became available for all [[Unix-like]] systems and some others such as [[OS-9]].<ref>{{cite book|author=Paul S. Dayan|year=1992|title=The OS-9 Guru - 1 : The Facts|publisher=Galactic Industrial Limited|isbn=0-9519228-0-7}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)