Sh3ll
OdayForums


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 :  /usr/lib64/python2.7/Tools/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/Tools/scripts/rgrep.pyc
�
[��dc@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	-

ZeroDay Forums Mini