Where GREP Came From - Computerphile

Channel:Computerphile · Length:10:06 · Published:2018-07-06 · Views:1302481

Watch on YouTube

Summary

Brian Kernighan explains how grep came to be, written overnight by Ken Thompson, and how it got its name from the ed command g/re/p. He also covers the lineage from QED to ed that led to it.

Why HN recommends it

HN commenters point to it as a short, charming first-hand account of Unix history from someone who was there.

My favourite BWK video is about grep. — HN, 2020

Testing, debugging & developer tools · History of computing

Subtitles (excerpt)

I thought today maybe we would talk about 'grep', a well-known command in the UNIX world. Something that's been around since the early 1970s. What 'grep' lets you do is to search for patterns of text - arbitrary patterns of text in one or more files and there could be an unbounded number of files of input. Or the input could be coming from some other program, for example as it is if you're using Unix pipelines. So you take some program and you pipe it into 'grep' and that way, no matter what the amount of input is, 'grep' can filter out, or show you, the things that you're interested in. And that's stuff that you can't do with a text editor very conveniently - if at all. One of the issues with 'grep' has always been: Where does that weird name come from? And so I thought, perhaps, I could tell that story, if it would be of any interest and we'll see where we go from there. The way it came about - you have to put yourself back in the early days of computing, before everybody present in this room, except me, was born. Let's say something like 1970-71 -- the very, very, early days of UNIX. The computer that UNIX ran on was a PDP 11. At that point it was probably an 11/20. It was a machine that had very

On Hacker News

My favourite BWK video is about grep. [VIDEO] The last part is very quotable: "They had one grave disadvantage, none of them were Ken Thompson" — peterburkimsher, 2020-11
Slightly off-topic, but Brian Kernighan has a great video about the origins of grep. If you know anything similar for awk, I'd enjoy watching it! [VIDEO] — peterburkimsher, 2020-11
"Where GREP Came From" by Brian Kernighan from Computerphile: * [VIDEO] For those unfamiliar, Kernighan is the "K" in K&R C and the "K" in AWK: * [LINK] — throw0101a, 2020-09
From the video [1]: "The UNIX text editor was called 'eee-dee' - it's not pronounced 'ed', at least by those in the know - it's pronounced 'eee-dee'. This was written by Ken Thompson, and I think it was basically a stripped down version of an editor called QED" [1] [VIDEO] — jmts, 2018-07

Related videos