commands
Class grep

java.lang.Object
  extended by java.lang.Thread
      extended by kernel.AbstractProcess
          extended by commands.grep
All Implemented Interfaces:
java.lang.Runnable, IProcess

public class grep
extends AbstractProcess

Searches the files given by the input arguments for a specific pattern. If there are no files requested or the argument "-" is used, the command finds the pattern in the standard input.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
grep()
           
 
Method Summary
 java.lang.String getHelp()
          Provides full description of the command to be used in the MAN command.
 void realization()
          Realizes the GREP command.
 
Methods inherited from class kernel.AbstractProcess
enableStdIn, equals, exec, getArgs, getCommand, getCurrentPath, getErrOut, getFirstChild, getID, getIn, getKernel, getNext, getOut, getParent, getParentCurrentPath, getParentShell, getPrevious, getServices, init, init, kill, printError, run, setCurrentPath, setErrOut, setFirstChild, setIn, setNext, setOut, setParentCurrentPath, setPrevious, toString
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

grep

public grep()
Method Detail

getHelp

public java.lang.String getHelp()
Provides full description of the command to be used in the MAN command.

Returns:
Full description of the command including the syntax.

realization

public void realization()
                 throws AppException
Realizes the GREP command.

Throws:
AppException - Exception caused by an error in the virtual machines manager.