Module Command :: Class egrep
[hide private]

Class egrep

source code

       object --+    
                |    
             pype --+
                    |
       object --+   |
                |   |
          stacker --+
                    |
   object --+       |
            |       |
   linebuffer --+   |
                |   |
inputfilterbuffer --+
                    |
                   egrep

copy all lines offered to it in a pipeline and that match one of its regular expression arguments and makes it available to the next component in the pipeline.

example: cat('*.txt') | grep(r'^ab*c$') > sys.stdout

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from pype: __gt__, __or__, __repr__, __str__

Inherited from stacker: __call__, __sub__

Inherited from inputfilterbuffer: write

Inherited from linebuffer: __iter__

Inherited from linebuffer (private): _buffer

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • filter - function taking one argument and returing a single item.
Overrides: object.__init__
(inherited documentation)