KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib64/python2.7/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/Tools/scripts/rgrep.pyc
�
x��fc@sYdZddlZddlZddlZd�Zdd�ZedkrUe�ndS(s.Reverse grep.

Usage: rgrep [-i] pattern file
i����NcCsAd}d}tjtjdd�\}}x0|D](\}}|dkr2|tjB}q2q2Wt|�dkr}td�nt|�dkr�td	�n|\}}ytj||�}Wn*tjk
r�}	td
t	|	��nXyt
|�}
Wn6tk
r3}	tdt|�t	|	�fd�nX|
j
dd�|
j�}d}x�|dkr<t||�}
||
}|
j
|�|
j|
�}|jd�}~|dkr�|d
s�|d
=q�n|d
||d
<|dkr|d}|d=nd}|j�x%|D]}|j|�r|GHqqWqYWdS(Ni@iiitis-iisnot enough argumentss"exactly one file argument requiredserror in regular expression: %sscan't open %s: %ss
i����i(tgetopttsystargvtret
IGNORECASEtlentusagetcompileterrortstrtopentIOErrortreprtseekttelltNonetmintreadtsplittreversetsearch(tbufsizetreflagstoptstargstotatpatterntfilenametprogtmsgtftpostleftovertsizetbuffertlinestline((s+/usr/lib64/python2.7/Tools/scripts/rgrep.pytmainsR

'







icCs'tjt_|GHtGHtj|�dS(N(Rtstderrtstdoutt__doc__texit(Rtcode((s+/usr/lib64/python2.7/Tools/scripts/rgrep.pyR9st__main__(R*RRRR'Rt__name__(((s+/usr/lib64/python2.7/Tools/scripts/rgrep.pyt<module>s	-

Anon7 - 2021