lkml.org 
[lkml]   [2001]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Not a typewriter


On 05/11/2001 at 12:03:43 PM Joel Jaeggli <joelja@darkwing.uoregon.edu> wrote:

>it's not clear to me that that textsearch is a more accurate description
>than Get Regular ExPression

It's not more accurate. But Hacksaw's original point was that a new user would
not know what "not a typewriter" meant. My point was that a newbie wouldn't be
likely to guess that "grep" means "search for text" either; in both cases he'd
have to look it up if he'd never seen it before.

BTW, grep does not stand for "Get Regular ExPression." It comes from an
often-used command in the ed (and ex and vi) editor: g/re/p. The "g" means
"global," the "re" is a regular expression, and the "p" means "print." So to
search for all lines containing the word "foo" in a file you were editing, you
would type g/foo/p. This was such a useful function that it was packaged in a
standalone program that could be used to search multiple files.

Wayne


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.024 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site