ok
Direktori : /proc/thread-self/root/usr/lib64/python2.7/Tools/scripts/ |
Current File : //proc/thread-self/root/usr/lib64/python2.7/Tools/scripts/rgrep.pyo |
� �fc @ sY d Z d d l Z d d l Z d d l Z d � Z d d � Z e d k rU e � n d S( s. Reverse grep. Usage: rgrep [-i] pattern file i����Nc C sA d } d } t j t j d d � \ } } x0 | D]( \ } } | d k r2 | t j B} q2 q2 Wt | � d k r} t d � n t | � d k r� t d � n | \ } } y t j | | � } Wn* t j k r� } t d t | � � n Xy t | � } Wn6 t k r3} t d t | � t | � f d � n X| j d d � | j � } d } x� | d k r<t | | � } | | } | j | � | j | � } | j d � } ~ | d k r�| d s�| d =q�n | d | | d <| d k r| d } | d =n d } | j � x% | D] } | j | � r| GHqqWqYWd S( Ni@ i i i t is -ii s not enough argumentss"