gnu.regexp.util
Class  Grep
java.lang.Object
  |
  +--gnu.regexp.util.Grep
- public class Grep- extends java.lang.Object
Grep is a pure-Java clone of the GNU grep utility.  As such, it is much
 slower and not as full-featured, but it has the advantage of being
 available on any system with a Java virtual machine.
- Version: 
- 1.03
- Author: 
- Wes Biggs
         Lee Sau Dan
         Ulf Dittmer
| Method Summary | 
| static int | grep(java.lang.String[] argv,
     RESyntax syntax,
     java.io.PrintStream out)Runs Grep with the specified arguments.
 | 
| static void | main(java.lang.String[] argv)Invokes the grep() function below with the command line arguments
 and using the RESyntax.RE_SYNTAX_GREP syntax, which attempts to
 emulate the traditional UNIX grep syntax.
 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
main
public static void main(java.lang.String[] argv)
- Invokes the grep() function below with the command line arguments
 and using the RESyntax.RE_SYNTAX_GREP syntax, which attempts to
 emulate the traditional UNIX grep syntax.
grep
public static int grep(java.lang.String[] argv,
                       RESyntax syntax,
                       java.io.PrintStream out)
- Runs Grep with the specified arguments.  For a list of 
 supported options, specify "--help".
 This is the meat of the grep routine, but unlike main(), you can
 specify your own syntax and PrintStream to use for output.