Class Grep

java.lang.Object
  extended by Grep

public final class Grep
extends java.lang.Object

Searches the input file (or standard input if no file is given) for lines containing the given pattern and prints these lines.

Usage: java Grep PATTERN [FILE]


Method Summary
static void main(java.lang.String[] args)
          Searches the input file (argv[1] or standard input if no file is given) for lines containing the given pattern (argv[0]) and prints these lines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Searches the input file (argv[1] or standard input if no file is given) for lines containing the given pattern (argv[0]) and prints these lines.