Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /lib64/python2.7/Tools/scripts/ |
� [��dc @ 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"