source:
trunk/procs/grep.pro
@
162
Last change on this file since 162 was 162, checked in by pinsard, 15 years ago | |
---|---|
File size: 220 bytes |
Line | |
---|---|
1 | ;+ |
2 | ; |
3 | ; grep |
4 | ; |
5 | ; @version |
6 | ; $Id$ |
7 | ; |
8 | ;- |
9 | FUNCTION grep, command, separator, index |
10 | spawn, command, line |
11 | line = strcompress(strtrim(line[0])) |
12 | argvar = strsplit(line, separator, /EXTRACT) |
13 | |
14 | return, argvar[index] |
15 | |
16 | END |
17 |
Note: See TracBrowser
for help on using the repository browser.