source: trunk/procs/grep.pro @ 66

Last change on this file since 66 was 66, checked in by kolasinski, 16 years ago

change str_sep to strsplit in grep

File size: 194 bytes
Line 
1FUNCTION grep, command, separator, index
2;
3; grep
4;
5   spawn, command, line
6   line = strcompress(strtrim(line[0]))
7   argvar = strsplit(line, separator, /EXTRACT)
8
9return, argvar[index]
10
11END
12
Note: See TracBrowser for help on using the repository browser.