Mail Archives: djgpp/1996/10/14/21:14:00
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 -