News for hackers. Stuff that matters.
Re:How grep got its name by judofyr on Thursday July 29, 2010 @03:36PM (#1558934)
Wait, what? As a non-native speaker of English, I've always assumed that "grep" is a normal English verb.
Re:How grep got its name by pg on Thursday July 29, 2010 @03:37PM (#1558938)
That's very funny. It's actually starting to be now.
Re:How grep got its name by judofyr on Thursday July 29, 2010 @03:49PM (#1558990)
I've always connected it with "grip" (and the Norwegian translation: "gripe"). /usr/bin/grep runs through STDIN and "grips" the matching lines, while everything else flows through and disappear. That totally made sense in my head…

EDIT:

In December 2003, the Oxford English Dictionary Online added draft entries for "grep" as both a noun and a verb. — http://en.wikipedia.org/wiki/Grep#Usage_as_a_conversational_...

Re:How grep got its name by ElbertF on Thursday July 29, 2010 @08:46PM (#1559898)
I made similar connection, in Dutch the word "grijp" (which sounds a bit like "grep") means "grab". I figured "grep" is to "grab" stuff from a file.
Re:How grep got its name by mhd on Thursday July 29, 2010 @03:45PM (#1558967)
In certain circles. Probably the same that would also recognize "grok".
Re:How grep got its name by judofyr on Thursday July 29, 2010 @04:05PM (#1559049)
You're telling me that "grok" isn't a normal English verb either? What a sad day :-(
Re:How grep got its name by ColinDabritz on Thursday July 29, 2010 @04:12PM (#1559073)
https://secure.wikimedia.org/wikipedia/en/wiki/Grok

Grok is a term from Robert A. Heinlein's book "Stranger in a strange land."

I can see why finding out that these amazing words are not 'official' English could make you sad, but for me I find it amazing and encouraging, as this is exactly the way that some language is formed! They are so full of future potential.

I look forward to seeing what terms 'make it' into major dictionaries in the future.

Re:How grep got its name by sesqu on Thursday July 29, 2010 @07:14PM (#1559667)
Re:How grep got its name by Groxx on Thursday July 29, 2010 @08:45PM (#1559895)
lol

(edit: oh come on, you know it'll end up in there eventually!)

Re:How grep got its name by mhd on Thursday July 29, 2010 @04:13PM (#1559078)
Considering the rather eclectic nature of the English vocabulary, is there such a thing as a "normal" verb? Grok is exactly the same level as brobdingnagian, i.e. perfectly cromulent.
Re:How grep got its name by pjscott on Thursday July 29, 2010 @05:09PM (#1559268)
According to the Oxford English Dictionary, both grep and grok are English verbs. I'm happy about this, since the OED is about as official as you can get.
Re:How grep got its name by ig1 on Friday July 30, 2010 @07:55AM (#1560811)
I used to do research for the OED and generally if there's evidence that a verb is common in the field (used in magazines, books, etc. by multiple authors and not just in reference to it's original usage) then the OED is willing to include it.

If there's a term that you think matches that criteria but isn't included you can gather up some relevent citations and send them in and they'll consider it for addition.

To get a transparent look at how they do this kind of thing have a look at:

http://www.jessesword.com/sf/

The OED ran an open research project to gather evidence of science fiction terms as they figured the online SF community would be much better at finding this evidence than their own researchers.

Re:How grep got its name by jackowayed on Friday July 30, 2010 @01:25AM (#1560334)
How does the OED define grep?
Re:How grep got its name by gmac on Friday July 30, 2010 @05:21AM (#1560627)
grep, n. Computing. A Unix command used to search files for the occurrence of a string of characters that matches a specified sequence or pattern, and to output all the lines matching this. Also grep command.

grep, v. Computing. 1. intr. To search for a string of characters using the grep command. Also trans.: to search (a file) in this way. 2. trans. slang (usu. humorous). Of a person: to search; to scan visually.

Both marked: DRAFT ENTRY June 2010

Re:How grep got its name by sabat on Thursday July 29, 2010 @04:28PM (#1559129)
The use of Grok in English is embiggening.
Re:How grep got its name by mhd on Thursday July 29, 2010 @04:46PM (#1559195)
There may be some truthiness in that.
Re:How grep got its name by cag_ii on Thursday July 29, 2010 @08:25PM (#1559848)
...it's a perfectly cromulent word.
Re:How grep got its name by cromulent on Saturday July 31, 2010 @12:11PM (#1563888)
Agreed.
Re:How grep got its name by btilly on Thursday July 29, 2010 @08:01PM (#1559787)
Interestingly grok was originally a noun! It means "water".

People look at me funny when I point that out.

Re:How grep got its name by jf on Friday July 30, 2010 @04:38PM (#1562539)
For shame! It makes perfect sense if you've read "Stranger in a Strange Land"
Re:How grep got its name by danh on Thursday July 29, 2010 @05:48PM (#1559394)
That just goes to show that normal English is highly unusual.
Re:How grep got its name by ars on Thursday July 29, 2010 @04:12PM (#1559069)
It was coined in the book Stranger in a Strange Land by Robert A. Heinlein.
Re:How grep got its name by jawngee on Thursday July 29, 2010 @07:07PM (#1559640)
I always thought it was some clever twist on "grope".
Re:How grep got its name by nuxi on Thursday July 29, 2010 @03:22PM (#1558897)
From Early history of UNIX: "When asked what that funny name meant, Ken said it was obvious. It stood for the editor command that it simulated, g/re/p (global regular expression print)."

http://massis.lcs.mit.edu/archives/history/early.history.of....

Re:How grep got its name by strlen on Thursday July 29, 2010 @04:11PM (#1559068)
There goes my theory about grep, awk, sed being named after digestive noises.

What's interesting is the history of dd and its completely non-UNIX like argument format e.g., if=/dev/null of=./foo bs=4k: the latter was designed as a prank mocking IBM's mainframe OSes (today's equivalent would be making a FactoryFactory in Python, I'd imagine)

Re:How grep got its name by caf on Friday July 30, 2010 @10:23AM (#1561182)
Sadly, having had to wrestle with a surly TSM installation, I can report that IBM tools still use this argument style.
Re:How grep got its name by Groxx on Thursday July 29, 2010 @08:49PM (#1559905)
A much more amusing theory than reality. "perl" could fit in that category too...
Re:How grep got its name by epochwolf on Thursday July 29, 2010 @06:42PM (#1559571)
grep = Global Regular Expression Print

awk = Administrator's Wisdom Kit

sed = Stream EDitor.

Re:How grep got its name by SwellJoe on Thursday July 29, 2010 @07:04PM (#1559630)
66% correct:

awk = Aho, Weinberger, Kernighan

Re:How grep got its name by spicyj on Thursday July 29, 2010 @03:05PM (#1558815)
Wow, I was thinking about this just this morning. I assumed it stood for "GNU regular expression parser" or something like that, even though that doesn't really make sense.
Re:How grep got its name by presidentender on Thursday July 29, 2010 @03:23PM (#1558901)
But GNU is not Unix.
Re:How grep got its name by jff on Friday July 30, 2010 @03:29PM (#1562292)
Don't fall victim to RMS's propaganda--as another poster pointed out, grep, ed, sed, awk, etc. all predate GNU's braindamaged implementations.
Re:How grep got its name by ithkuil on Friday August 06, 2010 @07:00AM (#1580747)
agreed on the RMS propaganda stuff.

But I'm sincerely interested to know why you say that their implementations are braindamaged.

Re:How grep got its name by graywh on Thursday July 29, 2010 @11:46PM (#1560207)
But grep (written for Unix) is older than GNU.
Re:How grep got its name by MaysonL on Saturday July 31, 2010 @06:35PM (#1564355)
GNU's rep existed previously
Re:How grep got its name by aristus on Thursday July 29, 2010 @04:13PM (#1559077)
Extra credit: how did glob get its name? I've never found an explicit answer, but the Unix 71 manual suggests that it's short for "global".

http://cm.bell-labs.com/cm/cs/who/dmr/man71.pdf

Re:How grep got its name by ori_b on Friday July 30, 2010 @09:20AM (#1561003)
Glob was already a word. Dictionary.com claims it dates back to about 1900, and might come from the blending of "globe" and "blob"
Re:How grep got its name by sprout on Friday July 30, 2010 @10:02AM (#1561121)
That's one place where plain English works fine. Glob matches a glob of characters.
Re:How grep got its name by duck on Thursday July 29, 2010 @03:56PM (#1559014)
More about ed - http://en.wikipedia.org/wiki/Ed_(text_editor)

It was one of the first end-user programs hosted on the system and has been standard in Unix-based systems ever since. ed was originally written by Ken Thompson and contains one of the first implementations of regular expressions. ... Famous for its terseness, ed gives almost no visual feedback. For example, the message that ed will produce in case of error, or when it wants to make sure the user wishes to quit without saving, is "?". It does not report the current filename or line number, or even display the results of a change to the text, unless requested.

Re:How grep got its name by bluesmoon on Friday July 30, 2010 @01:19AM (#1560331)
One of the reasons ed is so terse is because bandwidth was really expensive back when it was written. Not necessarily in terms of money (since everyone was at a university), but in terms of time.

If your editor were to echo back everything you'd typed, you'd waste twice the bandwidth (once to send a keystroke in and once to get it echoed back). Though in reality it would be more like 4 times because each character sent through would require a TCP-ACK packet sent back. By saying nothing, ed became really fast.

sed took things to the next level. If you already had a file on a remote system, and wanted to make changes to it, all you had to do was note down the 'ed' commands to make those changes, and then tell sed to run them. You didn't have to open ed to operate on the file, you just had to send your commands over the network and sed would operate on the file remotely. A more efficient rsync, if you will.

Re:How grep got its name by mturmon on Friday July 30, 2010 @02:06AM (#1560406)
ed preceded TCP (first ed manual I could find is dated 1971; the first TCP research paper was by Cerf and Kahn in 1974).

When ed was used, it would be common to interact with the computer on a teletype, not even on a crt monitor. So a response meant printing characters on paper.

sed was and is more about programmatic editing (i.e., editing a stream as it was generated, using a script for commands), or editing of large files that would overwhelm system memory, not about some kind of remote usage the way you're describing.

Re:How grep got its name by enf on Friday July 30, 2010 @01:54AM (#1560391)
It wasn't network bandwidth actually, it was printing speed. When your terminal can only print ten characters per second, terseness is even more of a virtue than it is on a slow network.
Re:How grep got its name by rudin on Friday July 30, 2010 @01:01AM (#1560313)
I think everyone should spend an evening trying to write in ed. Knowing that most of unix was written in this simple editor shows the power of tight constraints in design decisions and the creativity that can come from them. It also makes the whole cascade of editors ed/vi/vim/... more understandable.
Re:How grep got its name by coliveira on Friday July 30, 2010 @09:10AM (#1560976)
I did this exercise, and to tell the truth, it works better than "normal" editors for some tasks. For example, fixing bugs from a C compilation, checking a particular line, finding some structure on file based on regular expressions.

Nowadays, I use ed regularly whenever possible. I even wrote a blog post on my experiments:

http://coliveira.net/software/using-ed-the-standard-unix-edi...

Re:How grep got its name by wazoox on Friday July 30, 2010 @04:32AM (#1560574)
However ed is actually easier to use on a true teletype, where everything you print is actually... printed.
Re:How grep got its name by cag_ii on Thursday July 29, 2010 @08:41PM (#1559884)
Re:How grep got its name by bluesmoon on Thursday July 29, 2010 @06:07PM (#1559444)
strange, I'd always thought that everyone already knew this. It's mentioned in "Mastering Regular Expressions" and also in "Sed and Awk".
Re:How grep got its name by ralph on Sunday August 01, 2010 @07:20AM (#1565127)
"ed was a command-line editor that worked identically to the colon-commands in vi and vim—in fact, you can press Q to get into ed mode (then type vi to get back into vim)."

This is wrong. Pressing Q in vi quits visual mode and returns you to ex(1). ex(1) precedes vi(1) and was an extended editor, based on ed(1). That's why the commands are similar, but not identical. And ed(1) isn't dead, it still is a command-line editor. :-)

Re:How grep got its name by mahmud on Thursday July 29, 2010 @04:25PM (#1559115)
OT: but those ThoughtBot people know how to make beautiful websites.
Re:How grep got its name by code_duck on Friday July 30, 2010 @01:29AM (#1560345)
That's interesting. I recall ed from the Amiga...