www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/14/21:14:00

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GREP
Date: Mon, 14 Oct 1996 20:12:55 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 27
Message-ID: <32630137.3FFB@cs.com>
References: <53uc4h$sa5 AT coconut DOT epix DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp102.cs.com
Mime-Version: 1.0
To: rowe AT epix DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Caltoi wrote:
> 
> I'm a self taught tinkerer in programming and I keep seeing a program
> called grep. What is it and what does it do??

Grep = Global Regular Expression Print

It's a text search utility like DOS's 'find', but far more powerful. 
For example:

% grep "\<__dpmi.*(.*)" .../*.c

finds all references to functions that start with the string "__dpmi" in
all .c files in the current directory and all its subdirectories.  Try
that with DOS find.  :)

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019