19 lines
3.6 KiB
Plaintext
19 lines
3.6 KiB
Plaintext
en·vÅos GREP
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
GREP
|
||
1
|
||
|
||
4
|
||
|
||
By: Larry Masinter (Masinter.pa@Xerox.com)
|
||
Requires: BSEARCH
|
||
INTRODUCTION
|
||
like FGREP of Unix: searches for strings in files.
|
||
(GREP STRS FILES) [Function]
|
||
STRS is a string or a list of strings. FILES is a file or a list of files. Searches for the given string(s) in the given file(s), showing each line.
|
||
(PHONE name) [Function]
|
||
Calls (GREP name PHONELISTFILES). PHONELISTFILES is initialized to NIL. (The PARC init file resets it to point to the PARC phone list.)
|
||
For example,
|
||
(GREP (QUOTE ED) (QUOTE {INDIGO}<REGISTRAR>PARCPHONELIST.TXT))
|
||
will print:
|
||
(from {INDIGO}<REGISTRAR>PARCPHONELIST.TXT;3)
|
||
4183 <Endicott>, Fred 35-1354
|
||
4435 <Fiala>, Ed 35-2166
|
||
4598 <RKennedy>, Ray 34-78
|
||
4839 <McCreight>, Ed 35-2146
|
||
5759 Pedersen, Jan 32-202
|
||
4818 Satterthwaite, Ed * 35-2174
|
||
MES Solcz, Edward J. 8* 348-1214
|
||
ATA Wahlenmeier, Fred 887-4018
|
||
|
||
|