SlideShare ist ein Scribd-Unternehmen logo
1 von 263
Downloaden Sie, um offline zu lesen
deft            D

^   &   ^   Z       Z
'>/ hdKZ/

>/E  h^K

WZD^^

/EdZKh/KE

  WZ, d  hd// / E dd/s/d / /'/d  KZE^/
  ZYh/^/d/ / ^/^dD

d /Ehy /s 

  EK  WW/ /KE/
   ss/ Z d /Ehy /s 


d /Ehy dyd DK

  '^d/KE  DDKZ/ / D ^^
  DKhEd  DDKZ/
     
                t 
                  
   KK  , ^,
     D
     ^
     D
     
   Yh/^//KE DDKZ/ / D ^^




     
  Z /KE / hE d/D /E
     
     D
  Z/Z /   Zd
d /Ehy 'h/ DK

  /EdZKh/KE
  '^d/KE  DDKZ/ / D ^^
   KK  , ^,
   Yh/^//KE / DDKZ/ / D ^^

    
    '
  '^d/KE / hE  ^K KE hdKW^z
    
  yW/K
    

d ydZ

 WWE/        W Z DdZ/ WZ / KKd  ZE

 WWE/        D E W '

    D


    ^
    D
    
    'ZW
    
    
     
    
    D
'
Stefano “youngSTEr” Fratepietro si laurea nel 2006 in Information
Technology and Management (Scienze di Internet) presso l’Università
degli studi di Bologna con tesi di laurea in Informatica Forense dal titolo
“Uno   studio   del   caso    virus   Vierika”;   certificato    ISECOM   OPST,
attualmente è un security specialist presso l’ufficio it-security del CSE
(Consorzio Servizi Bancari) ed effettua attività peritali per tribunali,
forze dell’ordine e privati partecipando come consulente tecnico a casi di
fama nazionale come “Buongiorno! Vitaminic” e “Pirelli-Telecom-Ghioni”.
Dal 2005 è creatore e project leader del sistema DEFT. Saltuariamente
effettua attività di docenza in Informatica Forense per Università italiane
e corsi privati. E’ membro IISFA (Italian Chapter) dal 2008.


Sandro “bUSBoy” Rossetti
Alessandro Rossetti vive e lavora a Roma. Molti dei suoi interessi
personali   riguardano   l'Information      Technology,     in    particolare   le
problematiche di security e forensic. È membro di diverse organizzazioni
indipendenti quali Isaca (Boad of Directors of the Rome Chapter), IACIS
ed IISFA (Italian Chapter).
E   /


d




    •                       




    •   E                       E


Z               


W                      E




                   
    •   


    •   /
    •   


E       K




Y
^
W

    /s d
Z


/


                    


                /W
/
            ^                                                      ^           d         D               
                       '                                     s                                 Z
                                                                                   d
                                                                                             d 
                                D              t




                                            d 
                /                                                  '                     h
                           Y
                                /                                      h             




            Y
            •
            •


            d




    'Eh                                                    h                                  
                'Eh                                                         'Eh 'W                t

    ^


                                                                t

                                             d

    /
W   d             

h


/          d




    E
    E




    d                     /W
Z

W                           d                       ZKD   d 


         h        Wh   /          D                    D
         d                          D             d 


             D                          d 


                                       h^


d                                             /


d                                         D   t                W
d                     



d 
                                   /      d




                               y
               d
                               / D         K        
                               / D         K        
                               /




d 
t                                       ^   ^
Dd t            Z         Z            ^     Z
                                       D  ^
d /                                   D          s
E                                       K       s
t                    d                 K        s
D     ^    t                            K           s
D     ^    t                            W            s
t                                      Z      s
h ^                                     Z
W ^                                     ^  t
y s                h^
y         Z        h            s
/                  h W           s
                  s             s
                   t / ^
 s                t W         s
                  W          d
W        yW               W
Z DD               
Z                  / W s
Z      Z           ^ ^         
sDD                ^ ^         s
t K                D W s
         ^     s   D       W
          s      E         W Z
 W                K     W s
 W                W         Ky
     Z             W    W
/     s          W          W s
/      s         W^d W
/ ,      s        Z               W   s
/                 sE W s
          s      t     W
D          s      t         s
D     ,       s      s^       W
D           s     ,
                    Z           W
K        s
                   t sE
K          s
                   d ^ 
K             s
                   Wd
W             s
                   ds
Z       s
                   ^             Z
Z
                   d
^   t
                   ^
Dh/      s
                   d
D      s
                   W
^     s
d    

W                                   /K^


                      d h               /K^
                                   h^
/
    •                     
    •
W                       d
    •                              W/


    •                          /
    •             
    •
    •
/




d 

             d    
         Y
d
d 




'




    •
    •


    •   /
    •



D

/                    /
•
        •       
        •
/
                        /





W




        •


        •


        •


        •
            o
            o
            o
            o
            o
            o       E
Ed^


                                     Ed^




K^ W               d
K           ^
h
    ^           ^             
        D                                  W      d
                                       h
                                           h          d
                                           Ed^
                                       h


D




W
t 

/                                 t
         Y                                          
                    t





                                          
                                           
                                          


d
Y


Y


                     


    •
    •
    •
    •



D

       D   D           
         Z       Z               Z             Z


Y
                                                 
                                         D 
D ,
                                     /
^

            ^,
                   E             ^                 E^                  E/^d
                                 h^               ^,         ^        ,


                  ^,







                                                                           '
                            ^,       ^,       ^,        ^,        ^,
                                                         ^,
                        /


    ^,
             ^,                                        ^,






D

D
/
W
        


    •
    •
    •
    •
Y
h
        ^            
D





            'Dd




                         K   K
d               




           ^                     D                                

                         D                     

             d               ^                                 

            Ed^          D               Dd                   

            h^           D                     


Z


        •
        •



                                                           W







                                                        '




    D            d
/




/




    ,
d


    •   •   •
    •   •   •
    •   •   •
    •   •   •
    •   •   •
    •   •   •
d             'h/

/

                       d                     y   
y                                                         y


                                 
            d 
                                                               
                        
                                         D   t
                                     
    d                            t


W                                d
d 

/
    D
    
    D
    W
    s
    '
    '   Z
    K
    D
    


    h
E                   D




                                                             d 



                                            '                    /                    yd               D
y
                                                                                                    h   '
,           ,                   /                           /                   /                     /
D                   D                                    D                              K                            K
^                   ^                            d                        s                      tZZ y
E                                      t               y

^           s                                   y

^       d       ,           ^                            d
W                                                                                                              
                                                                    D                          K
W                                W                   ^                                       d                       h
        t
'

                            d 


E
    •   


    •   h
                                      Zt
    •   h       D        D




            D       Zt
D
D                                          
                                      ZK




                            W



E




                ^


       D   D
                    ^   t       E^




    /
d 




                 

h


    h
d 
                      '   /






/ 
^
W                              




W         ^


      ^
'

               '




                    '   '

'


    •   
    •   
    •   E
    •   
'




W
/




Z
'   


E
                            dyd
                h




            Z           



E
,


d   ,




           ,



,




K
'

                        d
^       





    •
    •       s
    •


    •       Z
    •       '
    •       
    •       
    •
    •       



h                  


/
h
h
'
'   











E
    •   /
    •   /
    •   /
    •   ^
h           d


    d
                /
Z
y

                 d                                       d 
                             y
                y
        /W
                        /W




                                            y




             y                   E              d



    /                                                           E
        d
    Y                                                   ^
Y


W




E               W




        '   y



    d   y
Z



E
s




    Z
d 




                                d    ^



d 
D            t


        
                      'h/
                                             d 


            d 


    •                       t                   d 


    •
•   d 
    •




W
WWE/                       
                      W




   d
                                  




   D




             h^


   D




       h^


   ,
               D


              D




   d                                   d


       
                                           ^
d
                                                              d




        W/           W/
        'W            'W                     '            W
        ^            ^
        W/           W/
        WD                      W            D
        sZ            sZ
        y                            y
     /E 
    ZD                    Z                D
               /K^                               ^         
    /           / W                  'Wd
    /          / d W/
                d
    'Ks 'Ks
    ,t
    /             /
    /D        /
    /K^,                 D                        /K
    /W WEW /W ,W KKdW                         Z ZW
    /Ws           /W
    /^ WEW /^ W W
    /^E                            /^E
    :Kz
    '
sD            s         D
/ d    
W      W
KKW 
D       D
                 d
                 
D      D
D      D
DKh^
D^/     D            ^            /         W/
Dd     Dd D                 d         
Ed
EhD     EhD
'EZ/ d/D d
E^                      E^
K^^     K^^
Ws KW^
W Z/ d      W /                   /
W Z/^ d      W Z/^
W/     W/
W/    W/ 
WD/            d       WD/
WEW     W       W
WW     W       W
WWd     W
W^                       W^
Z D     Z D
^       ^
^^/                     ^^/
^hZ/dz 
    ^/Ehy ^
    ^Z/  ^
    ^,     ^      ,
    ^DW    d                          ^DW
    ^W Z ^
    ^t^h^W            ^
    ^h^WE           ^
    dZ  
    dWD    dWD
    d^
    hD^    h^ D          ^
    h^    h^
    h^,/h^ ,               /             
    s     s             
    s'     d     s'
    sd     s
    td    t
    yd     /D W yd DD
    y      y
    y      y
                      D           y
                      
    y                                          y   y


/


    h'^ Z
    E    /
    KKd /


W                         KKd
d
^        


E                                                ^ ^E^/d/s




d


                      d
                                        /
                 KDD E /E ^/




             ,t W/ y
                                                   W      /
             
                                    W/
                                  W/
                                            W/    /ZY
                          
                                    W/
                                  Z^d                   y^d
                                        ^d


             ^
W/ /K W/
      
                     W/
                      W/




          ,t W/




      /


               W/


               ,t W/ W/ h'
               ,t W/ W/ h'
      
      KE/'       W/ h'
W/
                       
          KDWKEEd             W/
                     KDWKEEd W/ W/ KDWKEEd
      
          W/ h' WZ/Ed
           W/ h' WZ/Ed            W/  /EK
      d                                             ^
W/ W/


           D                           
                         D


                             W/




^
                 d




            ,t W/




^


     ,t W/
    W/                /ZY
                 W/


          ,t W/
    W/                 /ZY
             W/


,t W/ /                            /ZY       /^



,t W/ /                            /ZY
           W/
,t W/                                        ^^d


,t W/ d         W/ /K^                         K^
       d            t                  D              t


,t W/ D                                K^




y
K




,t W/      W/ ^             /



,t W/                                 D


            ,t W/
Z                     /ZY          /              K
                   /K^                   yd W/


,t W/ ^



^   


                                             W


                         W/
W/                      Wd^


                                                  W/
             Wd^


            W/ Es^


                                                    ^/ E
                            ^ ^                           W/




                    ,t W/
        h                                    E         E
                                                          ,Wd


                                W/


        
                    W/         K        Z          ^        /K
^   D
               /K                                   W/
                          W/                       D


                                                             W/




                                              W/




              W/ K              Z
,t K^^



         / y    /     /
                              Z D


,t ^^/
^


,t K^^               ^W

^


    'W


             'W




,t ^^/
^    


,t ^^/



,t ^^/
^    


,t ^^/
^
E ZD


                       




,t y
W                     D /KDDh
W
                           /K d
                             K




                              D /KDDh




,t :Kz
D                          :Kz  d       :Kz  d

^        


,t :Kz
^





,t ^W Z
W                            ^W Z

        W Wh                  ^W Z        
                  W Wh
    W
W/ y                             W               /

    
    
    
                               W/        /K W/


    /Ws
    ^     


        W/ y                  W               /      
                          d




    
    d


    


        WD            W            D
    ^


    ,t Ed      Z          Z/D /
                                    /


    ,t D


    ,t DKh^              D


    ,t ^^/          ^^/


    ,t                                    /D Z
,t Z


,t ^
                   d              W^


,t                         D^ K




,t 



     ,t
h


/


,t y



,t y              W       W      y    D

^


          ,t y
        ^    W    y   D                 D

^


          ,t y
        ^    W    y   D          ,       D
^


      D
      s


      


              E 


      ,t s 
      D


      ^                                /
                                        Z/^d


    ,t ^^/
      ^                  
              W            K


      Ed D         


      h'^ y            K         Wh
      ^             Wh


                        d
                                        Wh


      d




      ^hZ/dz                   d
W




    ^
^                                  /K


    E 

            


^/Ehy ^

^                        





s




^
^                                  /K


h'^ y              ,t


                                 /
                                          W/d



'EZ/ d/D K
K


   ^




       W/
       ZD                K^d^


       sZ
   y
                             '         /D
   D/W^ D/W^
   W Z/^
   ^
   ^, ^        ,
   ^W Z
   y


/dEhD y
            Wh/           y     ^


              E          




                                 Wh/


                     d
WW 
      ^
                                d   DK
                      K^


      


      y        ,


      Z
      


      ,t Ed         Z     KD
      
                           /


      ,t Ed         Z     KD      /K
      


      ,t Ed
          Z       KD
      


                   ,t ^




      E K


      h


^
h^
h                                 d




                                                 Zd^
                    


        ^   
                            ^
        




        ^
        h Zd                        /K           DD/K
                                         ^              d
                                             ^


/                                        ddz


                                ^
               s       


        E d
                    




        E 


        ^
,t W/ '             / K   W/





D'         D'
E Z




E ^
                   d


                       D'    ^



,t Ed



,t Ed



,t Ed
^


,t :Kz D



^       


E
E

W                                 W/


t




E 




E 


y            W d


,t Ed

^         




                        d
,     d           d
                            W/   ^,D







E
^


,t ^Z/ 
/K
,t ^Z/ 
^                         Z D



/Ws
^     


/Ws
^     


              y
d                                   DdZZ
                                y               t
                      d


    y             /            D



DdZZ                      d




          y
             W/E             W/



,t K^^ ^


              /                            D   W/ h'
d
            D      W/                  K
             D          W/         h
D     W/




t                        D    W/
                                            :


d




Ed


,t ^^/



KE/' zE D/ WZ/Ed h'
d




E K




^
h Zd                      /K        DD/K
d                                   ^


y     ^,  /E
^
                 ^
                             




K                        h^


                    ^           ^


/




d       s'




    y     '




d




    ,t ^^/


    



    W Z/^ ,t
^


    y
^




/K^,

^   



/       WW ^, y
^
                      '


^   


            y
d                                DdZZ
                            y           t
                  d


        y
           W/E       W/

                                d/
d


^/Ehy ^

^                           





s
W/
                 Z   ^    d     Z^d




,t Ed 
d
                       ^




      E
'

^              


           ,t ^^/
^


,t ^^/
^


,t
^    




/
          ^   , h^,            h


                            ^   , h^,
dZ 




    dZ 
/
               Wh
                       Wh




    dZ  


                   d




    dZ  
               d




    dZ
,t :Kz D                             E^ ^E^ W^y



^           


            ,t ZD


y                                    ' Zd





'Ks t




t




,t ^^/
^


/                          'Wd
        W           DZ                   'Wd


,t ^^/


E EhD         
                      EhD             
            EhD



/       ^'/ ,             '
/  /
 


     W/
          ,                      ^       d         ,^d




D'        E KKd


                d
                               d




 E 
 s
 


 ,t /^E
 ^                                    Z D , ^


 h'^       ZD ^,


 y         ,Wd                               ,Wd
 


                        ,Wd              W/d
                                                            /,
           s/       s
                                       ,Wd


 ,t y           /         ,        d
,t /            WW y             d            ,     d
K


                                           s
                 D                    Wh                   '
                Wh
E               '




^       E                 sD /hs                          ,s
                              s
            ^                                     sD      /
    /                    sD /hs ,s
                         sD           /


,t K                                               / 
                                       / 


    




,t d
,t W
,t W


    
,t 
,t 
,t                      hy 
                hy
,t
,t           W/W W W W/K^                  hy




,t                              


,t Z
,t h


,t ZD


,t                                   D/




,t                       ^DD /K^




,t Z


,t                         ^z^        D/E




,t D ^^/ /D D              ^^/
^   


,t /^E



        ,t  /





^
,t  /
                     W/ /


    y

W
                                           Wh


E
              K                         DKE/dKZ Dt /d




DKE/dKZ Dt /d                       W




          ,                         Wh
/              
                               Wh 


    E
/
                                h


    E
^


    /D
/D





        /D
                                   d
                  d        /D




        ,t ^^/
^


E

Z




E d                               h




KKd ^


,t /             d/ y   D



D Z /           /KDDh       D Z
K
                                  /
                      D Z       D Z
                          D Z            /


    D


    t




                      d




           K
    t
                    /Kd




/


                                  DD/K
/


     ,t /K           D
     ^




     y       /K


     ^




     ^


     E


     /W WEW
     ^   


     ,t ^         /K /ZY            /     W
     ^




     ,t ^^/               /D ^   Z /
     ^


,t
t
     /




,t
t


         /




/^ WEW
        ZW


E ^DW /          Wh





d                                         Wh
                           ^DW
             z
         Wh         Wh


             Wh


d                                      Wh d
                                 Wh
,t Ed


,t :Kz
^   


,t ZD


D'         E y       /       WW d


                                        d
                                                            d
                                                        D
        /
                        D


                            d     D


                                            d
,     d
E                                 Wd           ,   D
            ,       D                               E




' ,t                     ,/ h^
               
d                                                   h^
                                W/ d
t




             ' ,t
    Z
                                             h^
    ^




    ' ^




    D/W^                      D 
                   Z     
                       D 


    E 
    s
    


E   y    W      E




        sD /                                D^Z
                                   'W


             sD 
    


             sD D
sD ^sD
          


              sD D                                         DDh


                                                       W 




              sD /   
               /          


              sD /   
                      DDh                           /
          




              sD /   
          




              sD /               W                   dWZ
          




              sD /   


          /           


              sD /            s       W       /
                          d               /
WW


WW


y          W/                             W/          /K^




          y        W/
    


/ d     D
                                     W d         ^ d D
                     W d           ^ d           D
                         d W/ ZKD D
                                          D
                                                               D
                   ZKD                


          / d      /       ,W
                                        /K^




/ d                            W/





/ d                                  d
                         / s               /
WKZd s/          WKZd         s/
                                        
        d /                                                /
              /                                  WKZd      s/
/ /




/         s/
                                             s/


                          WDW        /
                      s/




d       s 


                                '                '
d


    
        /                WKZd


    ^ d                     '            '


    d




              d            EY




                    /Ed/z


/
E 


Z D 
^    


            W E^



     E      E^     dW



        d   E^



        D E^       hW



,t DKh^                D   



            D
                                  /
                                  d




    ZE DZ'
    ZE     Zd


    ZE Z/d
    ZE ZZ
ZE t ZE/E'
    ZE EKd/


    ZE /EK
    ZE h'


^
                  D
                       d




                        
d




W      ^




                               h




                   ^
                                   /


            /


        ^
E
^




Wh                  d


                           E
    ^DW                        Wh
                     Wh




                /K




Ed



,t ^^/ 




/     





           ^
D'       E KKd




 ^DW D                           ^DW




      /K W/


 KKW D





 ^^/ D                    hE
^




 ^^/ D                    hE
^


 /


 y        D           


 y        ^    


 ,t Z /
^     


          D
^                                          D


D' E KKd 




    y        h
                          t              W/
                                                   Z D


             h'^ y                     D




    D'
    E ^,
                              D


             E y    
    
    ^


    /K^                                       ^




   D'       D'
    E 
    Z


   D'       D'
    E W/ D                      W/
    Z
D'       D'
 E W/ D
Z
          
                      




                      y
^     /K^


^
                          




,
               /K^




                          y



      h




                              y

           h
E y             



^
                       
                                                 D




                  ,t ^         D        
^     


 /            ^                /ZY
D                         '         W       d          D '




 y                        D'Wd                 D '


      /K^                                                d    /K^




 ,t ZD


D'               E KKd




     ZD ,t E


D/E/
d                            dd
     d                           dd
     d   s' ^

     dd


                    d     dd
                     s^                    'W/K
 d
s'
    
    Z                                       d




E t        KE/' h' DDKZz /E/d




                /                       ZE h'




DKh^ D





           DKh^ ,
DKh^        s




            D' E y        /       WW d




        /


                                     /




                    ,t K^^
        


Dd W               Dd
        


Dd Z       Dd 




            Dd
        ^


            ,t Dd       K      E E
^          K   E E
                   d                                             D


                                        K   E E


                   K




                   ZD
          ZD ^          :/s


      ^


h^
      ,t      D                 D         d     h^




            D' y
                                /
                                         h


           D' y
      h                             /
      
      
                  DdZZ


              y
Z
        
        h                    /
        ^


        Ed ^ /     Z/^   E


EZ    ,t ^^/
        ^                        EZ 


        ,t ^^/


        ,t ^^/


        ,t ^^/


        ,t ^^/


        ,t ^^/


              Ed E
        
        E


        d




        Ed/dZ 




                                KE/' E d   d
E^
^     


    E^
^     




    E^       dW    E^




    E^
               E^




    E^




    E^




    E^
/            E^




d


    E sZ   ^, ^
ED/



            E h'^ y                              ^DW



s


              /K W/                     ED/
                      W/           ED/
                            E        d
                                             W/


t                                              ED/


d


/







    Ed ^
                                         




    h'^ y        d




    ,t E
K




                                            d


                             s'


DD EhD           ^  
                                   ^




E ZD


^DW W/ d
/K W/


WW                    d
            WW


            ZD


h'^ y                           h^,


E 


,t ^^/ D                      ^^/


^,                          ^W


y               /
/


y
K y                               W 




y
d




^,                      Wh


h'^ y          
                              d




           h'^ y    


                          d




h'^       ZD ^, d                             ^,
      ZD
       d                                :d '


h'^ y          d
d                                  d




/       d
            W  , d /',d     d
                        K




E 
s



^,                      /K


y           




            y   W/ 
                /ZY


/^ WEW               /^ W W


Z D d
    Z D


y           /   /KDDh
/


/                                   /d


        y        W/                                      W/


        y        W/                            W/


        WW 
                               WW


        /    


        y        D               


                 y               D                   '     W
    d                      D '


        y           W d




                                                      




                 y       Ws KW^ 


        y        ^DW                  ^DW
            hW


        WW                                   WZ W
^t^h^W 




      s'       
      d                                                 
                           , W               '


      /


      h'^ y                            ^z^EdZ ^z^y/d


      ^DW d              ^DW                       hW
                           /K W/


      E 


      E 
                    ^      


      ,t D          


      h'^ y                        d   ^         


h^   h^                     h^


          ZD


      y            W/                      W/


      /        K                                              d
                                                       W  sD ^hDD Zz
^  W K


^DW D                                         ^DW




                      


                            EZ Wh^


^Z/                       h Zd


         E KKd ^                     EhD


d
^   


         ,t
^   




    KW                     
Z                                  
                       
               t
               




KD W K

                     /
,t K^^



,t
h


          
d



                y       
                    /       Wh
          Wh


,t ^^/ ^^/ d      

^         


E 



,t W



,t W
     yd         d             d



,t WWd ^
                        /ZY D
h
/ZY D
               /ZY D
                   z
         /ZY       D    /ZY       D




                  /K
W




         ,t WWd
         s/
               d               W








,t K^^ 




,t ^^/
^




,    Wh
                          d




,t /^E
W Z/
^
^        


         W/        W/
         y         W/


         y                           W/
         y                     W/ /K^
                                 h
                           W/
         y                           W/ /K^
                                                        h


                                           /K^
         y               W/ 
     D
         y               W/ 
     D
         W/ /    W/ Z


                          W/
         W/                                   W/
                          W/                         W/
         y                  DDKE/'             W/
     
                     y
                             DD/K                     W/
                          D                Wh
         D^/ /     W/ D^/
D^/
      W/ 
  ^                                /ZY              d


      W/                               /ZY
              /K W/
         /ZY d                                      /ZY
                                /ZY
                  W/ 
         /ZY                      /ZY
                            /ZY
  d
  y            h    W/ /K^
                     d




                                               d


  /ZY                              W/


  y                                                 ZKD
  h
                                   ZKD


  y      
                   ZKD
  /K^
DDDD          y      ^                   /ZY
                                  W/          z
                                /ZY            /^


              y      ^
W/ZY
                  /K^
        
E       y     ^                                E 




        y                            W/




        y     ,                          /ZY
              /K^ W/Z               d
                                           /K^
              ,W W             E               K      y
                         d                           W/
        /ZY
        y                     W/       /ZY
              W/
        y     h     W/
                  W/ K /K^
                                     /


        y     /          W/                               W/
    /
         /ZY                      W/
        d




        y


            ZD
d
     /yW
                                                 Wh
         y    
     d


                  
                           /KDDh
     ^       W/
     d


                          W/
    D'           d
                                          /K
     d
     D'           d
                                     
                       d


     


d                 Kd
     ^


     /
     W ' ^/
     W/ W/


                                W/ Z
                            Z
             h         /K^                 d
d       Z
           d        Z


W/                                W/              ^   W
D
         ^WD
         ^WD
t ZE/E'                  ^WD


W/ WD E           W/ WD

h          W/ WD                         /K^
                    W/
h          W/ WD                                /K^
                                                  W/


          D^/                   W/ WD
    W/                    /Ed


,t WD/                 W 


W Z/
^    


W Z/^ ,t                        W           ^



^


^
^
              d




W Z/
^    


W Z/
^    


^DW W/ D
^                          /K W/


WWd Ed W

^         


          y       D                  / KW
K                     /KW




WEW
         WEW               d
KE/' WEW h' D^^ '^


    W/




/^ WEW
/^ WEW          /ZY




    /^ WEW          D


          /^ WEW              /K


Z                      /K




    /^ WEW 


Z


    /W s^ dW /Ws^

h         /W s^     WW D y WKZd^







    E


/


            WK^/y




/
^
                            z               E


                  ,t W/
                                      
                                       D/


                  ,t W/
        /             ^d                         
                                   d


E 
        
        W
        W


        W                         
                  Z         KE/' ^,^d d^
        W                        sD


                  Z D           Z D


        ^     


                  ,t DKh^        ,          W^




            ,t DKh^ ^


                  ,t DKh^
        d
,t DKh^ ^


,t DKh^            




,t K^^ W         ^       ^       ,K ^





W Z/
^   




E E                        K




E 


,t ZD


,t Z /
^   


         Z D
^   


Z D ^          Z D
^
E KKd
    ^                          Zh




            E KKd
    ^
    Zh


            E KKd
    ^                   Zh




    E
    
    Z
                               ^


            h'^ y     h'^   ZD h'^ /
Z
    
    ^




    E ^DW ^
    ^   


    E h'^ 


    y
             D'
    Z
E 




        ^t^h^W
^


^t^h^W
^


    W ' ^/
^   


Z D 


E Ed
^


,t ^Z/ 
                E


E D


E Z


E 




E ^


E ^
E t
    h
          h^       DD


    E D


^   E Z


    Ed
    ^


    Ed '           ^E/


    E 


    ^^/
    ^




    ^^/ ^^/
    


    ^^/ 
    




             ^^/
    ^




    d
    ^
^^/                ^^/




    ^hZ/dz 
/




    ^/Ehy              ^

^                  





/




    h'^ y


    Ed
D


                    D^Z

^                /K^           D^Z
d                                 Wh
Wh


       ^^/ ,t
^


       /




,t Dd


              DD ^h

                              




              



    DD ^h

                   KKD
              



       DD ^h
d                                 ^h




                          d
DD ^h
                                              D


                         


DD ^h
                                         D


                      


                         


     ,t



y    ^DW K                    Wh
                     ^DW


     ,t              WEW                ^D
     ,t                            /K
     ,t ^/Z          /K
     ,t /Z          /K
     ,t /ZY
     ,t D
             ,t d
        d        ^                  'W
        
            d /ZD


,t ^
,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^
,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


    ,t ^


,t ^


,t ^


,t ^


,t ^


,t ^




,t ^


,t ^
,t ^


,t ^


,t ^


,t ^


,t ^




,t ^




,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^


,t ^
,t ^


      ,t ^


              ,t ^




      ,t ^


              ,t ^


      ,t ^


h^           ,t ^ h^


      ,t ^


      ,t ^


              ,t ^


      ,t ^




      E ^


      ,t ^     W          / K   
      ^   


      ,t ^Z/  ^
      ^
,t Dd




,t K^^



,t ^^/ ^^/
^   


dZ 



W Z/^ ,t

^         ^d/   ,W W Z/^




^


,t
^


,t





E^ ^hEZW
^   ZW
E^
            E^                         Wh
                                              E/


                       Wh         E^
E
E^




                                         Wh
                             Wh
                                          EhD


                         EhD




E^ ^hEZW
^
ZW
      /
/      E       / K d


    ,t D


    ,t ^^/
^




    E
/


h


    ,t ^^/
^


    ,t ZD


    ^h^WE
^                  ^             Z D


                             d
                                  Zd


    E Ed
^                                dW


    ,t W/
,t W/


          


,t W/
^                     W/




,t W/
              W/


,t W/


          




,t W/
^                   W/




,t ^^/
^




^

^


d
,t W^


    ,t dWD

^




                      dWD ^   ^
d




    D'
dZ 




dZ  ^


^         


,t K^^ D      d   d     W





                                 d^





h
,t :Kz
      d   ' y
      


      ^       


      ,t ^^/ h       ^       ^^/
      ^


      ,t K^^
      


      ,t K^^
      


      E Ed
      ^                           hW hW 




      h^ /                              E
      ^


                  ^
      E




      y
      ^


h^
h^ d
                                 h^   d


                             




h^     h^
              h^ ^              h^


h^
              h^ ^


h^
              h^ ^




h^
              h^ d




h^
              h^ ^
      h^ ZY 'd ^Z/WdKZ




h^
              h^,/ d


h^
              hD^ d
                                h
h^
      hD^
                                               
                                      
              s/ W/          s/        W/     s
          W      /
      
                  h^
                ^ E ^E^


                  ^E^


               /y  W /dz


                 W /dz ,hZ/^d/^




               /'EKZ s/


               EKd K 


                D y ^dKZ^
                                          
                 W /dz K


               /'EKZ Z^/h


               ^/E' hE
                         h
                EK tW dd
y                         Wd


                                               Wd
                              ,/',DD
                                  KE/' ,/',Wd


              y   ^,
                                               s^K
KDW d s^K
                              s^K
                              s^K


                          y
                                                s^K
KDW d s^K
                                      s^K
                                       s^K


              /       ^DW




               
              ^   


              KKd y          ^
              ^   
              
              h
              d
D'         E KKd 


                  d
                        D              /


                      Z D


            E ^           W               sD W


  


  E ^       W                 sD W
  


            E ^           W               sD W


  


  sd 
                                         
                                       
       s'                        


  sd
  
  
  d




  sd
d




sd


d




sd

^                hd
         hd




sd

^
          sd 




,t K^^



,t ^^/
^
,t ^^/
^


        ,t td 
    





y           W/ h




    y        Wd
                           D      D/
d




,t yd K             yd   / Z
        ^


Ed WD/
WWE/         D E W '

D

E


^
         s
                         K





                     h
     d                          d
                                    


d




d
                 d




d




         s
d           y^
        ^
^                      d




                K




d                   d




E




^                      d




^
d




d
                                     d




D
                              E^
               /
    hh/          h


d
                           d


    d


               K
t




    E                    ,




d




                        ZKD




               K
        /
    d
                d
                    d




d
            /
t
        d
                                  /




K
d




K


s
    K


    W


    s


    D

    h                            d
                        E^   d
            E^
                    d




    
                d
                        /
y^                             D
                                            K
                                  y^




    D                         d




    /




    d                                   d
                      E                         d
        


    D


    D                     d

    D
h
    D                                   d
                  


    d                                               d
h^                 E
                                                               ^
                                                        h^
          h^
 
                                             
                                         d
                                         /
                                                           dzW
                            dzW ^




 /
                /
      K




                                                                   /




 d                                       


                                     t


                        /
 D                                               d


          d
 




K
h                        
                         




             K




/




d            K


                 K




    K
^                            d




        /K


    h                d


    


    h
/


W




        d




            ^


d




















               h
                        d
    





                   d
d




     d




             d
                             /




D


D




    /K           /




                         d




         d
                     d




                 d
d
                          s d
                    ^                  ^
            z                                      /


        




    d
                d




    d                                          d
                                               d
                                 /


/                                    d




    z
d




    


    Z
^
D                         ^


       ^       D   K
d                                 t               d




t                                         D
                        
D




    ^


    ^                       ^
                                              ^
            


D




    ^




    ^


    ^
                                      d


    


    ^
^


    W


    W


    W


       E


    '


    '


    d           ,


D
^


D
:
d


D
E
D
d
            d
D
d                       /
d                                             Wdz                          t
                                        h/           '/                           
                                  '/                                         Wdz




    ^                       Wdz                                 d
                                                                        Wdz


D
E       E                                                          ^   


D
d                                                ^         
                                                                    ^




    ^       WK^/y      


    ^                                   d




d




                   h                      D
h              D




E




    E                         d               d       /




    W


                                         


              d




    d                                             t




    d


                                 ^


       h/           '/ d




    h         K                       K
d
                d
Z


    /                       d
            
                                            ^


                                E
                                               d
                    d




    ^


D
d
        /




    h


    t                           K




    


    ^                   D               d
d




    
                            d
            /




    ^                           d       




D
E




    ^


    ^               


    ^                               d
                d


    ^                   d
        d


    ^                   d
        d


    d
h




                                                               d




    
                                         D^ K^




    ^                                               d   s d



    d                       Z   E D^ K^             hE/y
                    d


                        d


    Z   E


    Z   E
           d




W                                                          ^
s                  s   
                   /
            s


    K                   s


    d




    ^                          d                             d
h


                                                                       h
            d                                                     h


    d
        h
                                               K
    s                                  h        K^                d


D




    ^                                           D K^



    ^                                  


    ^



    ^           ZKD                                                  ZKD
d                   ZKD


    ^                           K             ZKD^ 




    


D


    ^                


    ^                                           d
                d


                                       


                    Z                         E
        
                           d


    


D
/^K                                                  ZKD   d
                    s ^


E                                       K^




Z       Z
Z   Z                                           hE/y




               Z       Z                       


               D           :                       


    t
d                                                       




    '
                        Z   Z               


       Z   Z                                               ^//
                                    t                          ^
        




       Z   Z                                       
            ^       
K


                                    /




    ^                                   


                       ^
/
                                        d
    D


    ^                                ^


    ^                    ^
d
                     D              :




                                   h                      
d


                h                    hd


D




                                       h         ^// d
             h           hd                  d            KE/' E^ hd




    Z                        :^
d                                                                           d




                    d
                                                  d




                                            h
d


D
E
D
^             /
                      d


D
:
                              d


D
/
                          d




                                      d
                  
                                  







    d   E^
/




    d       E^




                 




D
/
                              d




                                  d
                          
                      







    d        E^


        /




    d       E^




D
h   s d Ed^
                          


    E


    h   hd


                                             h
                                                     ,




    /                                                 d




    ^                         d                   




D




    d                                 /


D
Z                         D               h
W                d
D
Z                     d




    /
d







                      z   z   Z              /
                                                         d




        D                               :                          /
              /
        Wh       d                   , ^,K/^/KE




                                          /




/
                                                                                 d




d                         d




d                         d




                                                    z       z   Z           d




                     d
/


                                       d
                    d


    Z
        D


                                            /
                            d
                                sD d




D
E
D
:
                        d




D
E
D
d                                D '




    K                   d
                d


    ^
^


    ^


D
         h                            K   ^   d
                            s ZKD ^




    ^


    ^               d


    ^


    ^


    ^


    h


    ^   E^


    ^           D


    ^


    ^   ZKD                     


    K
K           s   


    K           W       


    ^


    K


    K


D




    h^                                                                 d
                                          
                                                                    d
                                              W


    K                                                 


                               ^               E ^    ^ K   ^


                           ^    K^   ^           ^


                           ^


                           ,W hy


                           E yd^         E yd


       E   ^   ZKD
K   ^                            d
              D   K^ y


    ^


    /


    d




D
^                            d       K
D
                                                 d           K
          




    d                    h                                         d
                                                          h        t
                                              d
                                      d




    


    hd                                   h                                  /
                                                      /                hd
/                     d


    




    




    




    




d
D       h^




    ^                 h^
              d


    ^                       h^
                  d


    ^
d


D
E
D
^                         /K                         
                                  /K       s
                                    K                                          
              d                        /K




           D W/        D                W/


    ^                                           s                                      d
                                                             
                                                                        
                      /




    ^                                           s                                     
d                                                   D




    h                                                                    y^
                                                                               d


        Z


    




    d                                                            /


^
/                       d


    D                                   K ^zE                 K ^zE
                        d
            ,                                               K ^zE




    h


    '


    h                                            Z /
                                          /
                                                                         Z /


                                                  Z /


                                    d




D
E
W                               ^   


               
K
d
            d




/
                /


        z


Z   
                KZ
^





/
^   
                                      ^


d




D
        /


/                                           d


                      E^         /
                            E^


           E^




,
                  s    d d hE/y
h              h^
h^




           E D
           E D


               E




                                   /K




           D
       E
       E
                       d
                               d
                   d
                           d


               EhD
           D       D
E
              E




                    


D


    /Z




          , Z^d       hd
     , Z^d            hd
h
D


^zEKW^/^


^Z/Wd/KE


d                                          hE/sZ^
                                       d
                               d


D
        W d, Z^Ks                        d
                                                W d, Z^Ks




    


    


    
KWd/KE^


                          h




    Z                  d

    
d


                                  /
d
                                        /
                                            
                                




        


        ^


    W                       h




    


    /
            h                       /




Z
    Z
^
    E
                    /


    
                d




d
    Z
t                                   K


    ^                                               W




        d                                   d                     hE/sZ^
            d


        d                    WZE'                               WEZ'
d


        d       ^


                    Z


            d                                               d




            yKZ                                                         d
                                    d


            d                                           d
                d


            yKZ


            /                                                     yKZ
                d                               d


                    WZE'


            d              WZE'         d
d                 WZE'             d


    d        WZE'                                               d
              d
        D
d        Z^             ^         /       D   D          D
             d


              Z^        ^         /       D D     
        ^,               ^,
/W^              ^,


              /W^


    ^         Z
                       ^,     ^,
/W^ ^,


                  /W^


               '
                       ^,     ^,
/W^ ^,


                  /W^


               '
                       ^,     ^,
/W^ ^,


                  /W^
'


        d                                d
^


        d              ^


        d   /       ^


        d         E       s      WZE'                 Es      ^




        d                  WZE'     ^

                                            d
W d, Z^Ks
,
    
                           d                     W d, Z^Ks
W
                                                d
            W d, Z^Ks


    




    
^ ^K


/DWDEd d/KE
d dZ


    '    


       


                          d d/         W



^

                                  ^,
^
             KWd/KE /

W               ^,                          t   /   /




        ^,                   /




d




d                                      /W^     t
d
                                                                /


t       h                      ^       D          D
Z       
Z

                      ^                  /
d                           z                                              'Eh
'   W                                                      d      EK t ZZ Edz


^
d                                                       d              /




Z
D

                                   D
                                   ^,
                                       ^,
                                   d
                                        t
^
                s
                    D       y
        ^                       /^


                                                 


                                                    /       /^




    W                                                       
                                E                                             d


    /
    ^                       K                                             /
                                             /           /
                                                              ^




                                                                 W
d                                   '                   t            d




                       d                                                d


        d


                    ,                                   E       ^           Z
       E^Z                E       /                ^       d
    /
                                /


    d                                                    y           ^
hE/K ^hWWKZd


    ^                                                    d                       EKd


    d                                                    D           ^
hE/K ^hWWKZd
D       y
    ^




                                            D            t


    d                                                y


    ^                                           d
                D
d                                              
        d                                      /




                                   D    y
                                ^       hE/K ^hWWKZd


                       'Dd             K t
                K


                                   D    y




    
^
    




                       W
                /                                             '




    Y       


    h   Eh                                              h




                           /
                                               d




                   ^
d


    




                                         ^s       d


                                ^s


    
                                                           d


        Z
               
                       
        E           W
        ^           
        ^
        ^       


    ^


    ^
s
    ^


h           ^
                                      h                             D
t                                    t                         h
                                                E       h
                                            z
            h
Z       s
Z


    ^                E


    h                         h


    h                             h


    h
    /
                                      ^          Z          


                                  :   
       /
h
                d                            /
Z               
t
                                                                  t




^

d                                     h^ '       /                    h^
                                                     h^ '         d               Wh/
KD /E W
'           W                    'W d
^                   KWz/E'
d           EK                                          DZ, Ed //dz     /dE^^ KZ
W Zd/h Z WhZWK^
^
D                                 Z D   




d   D   Z


d   ^,   Z


d   ^,     /W^


d   d
                  Z   d
d   t
                          t   W
,          d       s
h
           / , ^,   'K   , ^,   'K   , ^,   'K   KWd/KE^


                             d




                                      K


, ^,     'K




KWd/KE^




             E'h '           E'h ' /d E

                                                                   E

'ZW

E D

          grep, egrep, fgrep, rgrep - print lines matching a pattern

^zEKW^/^

          grep [options] PATTERN [FILE...]
          grep [options] [-e PATTERN | -f FILE] [FILE...]

^Z/Wd/KE
grep searches the named input FILEs (or standard input if
no files are
       named, or the file name - is given) for lines containing a
match to the
       given PATTERN. By default, grep prints the matching lines.

       In addition, three variant programs egrep, fgrep and rgrep
are avail-
       able. egrep is the same as grep -E. fgrep is the same
as grep -F.
       rgrep is the same as grep -r.

KWd/KE^

       -A NUM, --after-context=NUM
              Print NUM lines of trailing     context        after
matching lines.
              Places a line containing --     between
        contiguous groups of
              matches.

       -a, --text
              Process a binary file as if it were text; this is
equivalent to
              the --binary-files=text option.

       -B NUM, --before-context=NUM
              Print NUM lines of leading context before
matching        lines.
              Places a line containing -- between
        contiguous groups of
              matches.

       -b, --byte-offset
              Print the byte offset within the input file before
each line of
              output.

       --binary-files=TYPE
              If the first few bytes of a file indicate that the
file contains
              binary data, assume that the file is of type TYPE.
By default,
              TYPE is binary, and grep normally outputs either a
one-line mes-
              sage saying that a binary file matches, or no message
if there
              is no match.     If TYPE is without-match, grep
assumes that a
              binary file does not match; this is equivalent to the
-I option.
              If TYPE is text, grep processes a binary file as
if it were
              text; this is equivalent to the -a option.
        Warning: grep
--binary-files=text might output binary garbage,
which can have
              nasty side effects if the output is a terminal and if
the termi-
              nal driver interprets some of it as commands.

       -C NUM, --context=NUM
              Print NUM lines of output context. Places a line
containing --
              between contiguous groups of matches.

       -c, --count
              Suppress normal output; instead print a count of
matching lines
              for each input file. With the -v, --invert-match
option (see
              below), count non-matching lines.

       --colour[=WHEN], --color[=WHEN]
              Surround the matching string with the marker find in
GREP_COLOR
              environment variable. WHEN may be `never', `always',
or `auto'

       -D ACTION, --devices=ACTION
              If an input file is a device, FIFO or socket, use
ACTION to pro-
              cess it. By default, ACTION is read, which means
that devices
              are read just as if they were ordinary files.
If ACTION is
              skip, devices are silently skipped.

       -d ACTION, --directories=ACTION
               If an input file is a directory, use ACTION to
process it.     By
               default, ACTION is read, which means that
directories are read
               just as if they were ordinary files. If ACTION is
skip,   direc-
               tories are silently skipped. If ACTION is recurse,
grep reads
               all files under each directory, recursively; this is
equivalent
               to the -r option.

       -E, --extended-regexp
              Interpret PATTERN as an extended regular expression
(see below).

       -e PATTERN, --regexp=PATTERN
              Use PATTERN as the pattern; useful to protect
patterns beginning
              with -.

       -F, --fixed-strings
Interpret PATTERN as a list of fixed strings,
separated by new-
              lines, any of which is to be matched.

          -f FILE, --file=FILE
                 Obtain patterns from FILE, one per line.       The
empty     file con-
                 tains zero patterns, and therefore matches nothing.

       -G, --basic-regexp
              Interpret PATTERN as      a      basic regular expression
(see below).
              This is the default.

          -H, --with-filename
                 Print the filename for each match.

          -h, --no-filename
                 Suppress the prefixing of     filenames      on             output when   multiple
                 files are searched.

          --help Output a brief help message.

       -I      Process a binary file as if it did not contain
matching data;
              this is equivalent to the --binary-files=without-
match option.

          -i, --ignore-case
                 Ignore case distinctions in     both   the        PATTERN    and
the     input
                 files.

       -L, --files-without-match
              Suppress normal output; instead print the name of
each input
              file from which no output would normally have been
printed. The
              scanning will stop on the first match.

       -l, --files-with-matches
              Suppress normal output; instead print the name of
each input
              file from which output would normally have been                       printed.    The
              scanning will stop on the first match.

       --label=LABEL
              Displays input actually coming from standard input as
input com-
              ing from file LABEL. This is especially useful for
tools like
              zgrep, e.g. gzip -cd foo.gz |grep --label=foo
something

          --line-buffered
                 Use line buffering, it can be a performance penalty.
-m NUM, --max-count=NUM
              Stop reading a file after NUM matching lines. If
the input is
              standard input from a regular file, and NUM matching
lines are
              output, grep ensures that the standard input is
positioned to
              just after the last matching line before exiting,
regardless of
              the presence of trailing context lines.        This
enables a calling
              process to resume a search. When grep stops after
NUM matching
              lines, it outputs any trailing context lines.            When the -c or
              --count option is also used, grep does not
output a count
              greater than NUM. When the -v or --invert-match
option is also
              used, grep stops after outputting NUM non-matching
lines.

       --mmap If possible, use the mmap(2) system call to read
input,  instead
              of the default read(2) system call. In some
situations, --mmap
              yields better performance. However, --mmap can cause
undefined
              behavior (including core dumps) if an input file
shrinks while
              grep is operating, or if an I/O error occurs.

       -n, --line-number
              Prefix each line of output with the line number
within its input
              file.

       -o, --only-matching
              Show only the part of a matching line that matches
PATTERN.

         -P, --perl-regexp
                Interpret PATTERN as a Perl regular expression.

        -q, --quiet, --silent
               Quiet; do not write anything to standard output.
Exit immedi-
               ately with zero status if any match is found, even if
an error
               was detected. Also see the -s or --no-messages
option.

       -R, -r, --recursive
              Read all files under each directory, recursively;
this is equiv-
              alent to the -d recurse option.
--include=PATTERN
                Recurse in directories only searching file matching
PATTERN.

           --exclude=PATTERN
                Recurse in directories skip file matching PATTERN.

       -s, --no-messages
              Suppress error messages about nonexistent or
unreadable      files.
              Portability note: unlike GNU grep, traditional grep
did not con-
              form to POSIX.2, because traditional grep lacked a -q
option and
              its -s option behaved like GNU grep's -q option.
Shell scripts
              intended to be portable to traditional grep should
avoid both -q
              and -s and should redirect output to /dev/null
instead.

       -U, --binary
              Treat the file(s) as binary. By default, under MS-
DOS and MS-
              Windows, grep guesses the file type by looking at
the contents
              of the first 32KB read from the file. If grep
decides the file
              is a text file, it strips the CR characters from
the original
              file contents (to make regular expressions with ^
and $ work
              correctly). Specifying -U overrules this guesswork,
causing all
              files to be read and passed to the matching
mechanism verbatim;
              if the file is a text file with CR/LF pairs at the
end of each
              line, this will cause some regular expressions to
fail. This
              option has no effect on platforms other than MS-DOS
and MS-Win-
              dows.

       -u, --unix-byte-offsets
              Report Unix-style byte offsets.     This switch
causes grep to
              report byte offsets as if the file were Unix-style
text file,
              i.e. with CR characters stripped off. This will
produce results
              identical to running grep on a Unix machine. This
option has no
              effect unless -b option is also used; it has no
effect on plat-
forms other than MS-DOS and MS-Windows.

       -V, --version
              Print the version number of grep to standard error.
This ver-
              sion number should be included in all bug reports
(see below).

         -v, --invert-match
                Invert the sense of matching, to select non-matching
lines.

       -w, --word-regexp
              Select only those lines containing matches that
form whole
              words. The test is that the matching substring must
either be
              at the beginning of the line, or preceded by a
non-word con-
              stituent character. Similarly, it must be either at
the end of
              the line or followed by a non-word constituent
character. Word-
              constituent characters are letters, digits, and the
underscore.

       -x, --line-regexp
              Select only those matches that exactly match the
whole line.

         -y     Obsolete synonym for -i.

       -Z, --null
              Output a zero byte (the ASCII NUL character)
instead of the
              character that normally follows a file name. For
example, grep
              -lZ outputs a zero byte after each file name
instead of the
              usual newline. This option makes the output
unambiguous, even
              in the presence of file names containing unusual
characters like
              newlines. This option can be used with commands
like find
              -print0, perl -0, sort -z, and xargs -0 to process
arbitrary
              file names, even those that contain newline
characters.

       -z, --null-data
              Treat the input as a set of lines, each terminated
by a zero
              byte (the ASCII NUL character) instead of a
newline. Like the
-Z or --null option, this option can be used with
commands   like
               sort -z to process arbitrary file names.

Z'h Z yWZ^^/KE^

       A regular expression is a pattern that describes a set
of strings.
       Regular expressions are constructed analogously to
arithmetic expres-
       sions, by using various operators to combine smaller
expressions.

       grep understands three different versions of regular
expression syntax:
       basic, extended, and perl. In GNU grep, there is         no   difference
       in available functionality using either of the first two
syntaxes. In
       other implementations, basic regular expressions are less
powerful.
       The following description applies to extended regular
expressions; dif-
       ferences for basic regular expressions are summarized
afterwards. Perl
       regular expressions add additional functionality, but the
implementa-
       tion used here is undocumented and is not compatible with
other grep
       implementations.

       The fundamental building blocks are the regular expressions
that match
       a single character. Most characters, including all letters
and digits,
       are regular expressions that match themselves.       Any
metacharacter with
       special meaning may be quoted by preceding it with a
backslash.

       A bracket expression is a list of characters enclosed by [
and   ].   It
       matches any single character in that list; if the first
character of
       the list is the caret ^ then it matches any character not in
the list.
       For example, the regular expression [0123456789] matches
any single
       digit.

       Within a bracket expression, a range expression consists of
two charac-
       ters separated by a hyphen. It matches any single character
that sorts
       between the two characters, inclusive, using the locale's
collating
sequence and character set. For example, in the default
C locale,
       [a-d] is equivalent to [abcd]. Many locales sort characters
in dictio-
       nary order, and in these locales [a-d] is typically not
equivalent to
       [abcd]; it might be equivalent to [aBbCcDd], for example.
To      obtain
       the traditional interpretation of bracket expressions, you
can use the
       C locale by setting the LC_ALL environment variable to the
value C.

       Finally, certain named classes of characters are
predefined      within
       bracket expressions, as follows. Their names are self
explanatory, and
       they are [:alnum:], [:alpha:], [:cntrl:],       [:digit:],
[:graph:],
       [:lower:], [:print:], [:punct:], [:space:], [:upper:], and
[:xdigit:].
       For example, [[:alnum:]] means [0-9A-Za-z], except the
latter form
       depends upon the C locale and the ASCII character encoding,
whereas the
       former is independent of locale and character set.     (Note
that the
       brackets in these class names are part of the symbolic
names, and must
       be included in addition to the brackets delimiting the
bracket list.)
       Most metacharacters lose their special meaning inside
lists. To
       include a literal ] place it first in the list.
        Similarly, to include
       a literal ^ place it anywhere but first. Finally, to
include a literal
       - place it last.

       The period . matches any single character. The symbol w
is a synonym
       for [[:alnum:]] and W is a synonym for [^[:alnum]].

       The caret ^ and the dollar sign $ are metacharacters that
respectively
       match the empty string at the beginning and end of a line.
The symbols
        and  respectively match the empty string at the
beginning and end
       of a word. The symbol b matches the empty string at the
edge of a
       word, and B matches the empty string provided it's not at
the edge of
       a word.
A regular expression may be followed by one of several
repetition oper-
       ators:
       ?      The preceding item is optional and matched at most
once.
       *      The preceding item will be matched zero or more
times.
       +      The preceding item will be matched one or more times.
       {n}    The preceding item is matched exactly n times.
       {n,}   The preceding item is matched n or more times.
       {n,m} The preceding item is matched at least n times, but
not more
              than m times.

           Two regular expressions may   be concatenated;   the   resulting
regular
       expression matches any string formed by concatenating two
substrings
       that respectively match the concatenated subexpressions.

       Two regular expressions may be joined by the infix
operator |; the
       resulting regular expression matches any string matching
either subex-
       pression.

       Repetition takes precedence over concatenation,     which
in  turn takes
       precedence over alternation. A whole subexpression may be
enclosed in
       parentheses to override these precedence rules.

       The backreference n, where n is a single digit, matches the
substring
       previously matched by the nth parenthesized subexpression
of the regu-
       lar expression.

       In basic regular expressions the metacharacters ?, +, {, |,
(,      and )
       lose their special meaning; instead use the backslashed
versions ?,
       +, {, |, (, and ).

       Traditional egrep did not support the { metacharacter, and
some  egrep
       implementations support { instead, so portable scripts
should avoid {
       in egrep patterns and should use [{] to match a literal {.

       GNU egrep attempts to support traditional usage by assuming
that   { is
       not special if it would be the start of an invalid interval
specifica-
       tion. For example, the shell command egrep '{1' searches
for the two-
character string {1 instead of reporting a syntax error in
the regular
       expression. POSIX.2 allows this behavior as an extension,
but portable
       scripts should avoid it.

Es/ZKEDEd s Z/ ^

       grep's behavior is affected by the following environment
variables.

       A locale LC_foo is specified by examining the three
environment vari-
       ables LC_ALL, LC_foo, LANG, in that order. The first of
these vari-
       ables that is set specifies the locale. For example, if
LC_ALL is not
       set, but LC_MESSAGES is set to pt_BR, then Brazilian
Portuguese is used
       for the LC_MESSAGES locale. The C locale is used if none
of these
       environment variables are set, or if the locale
catalog is not
       installed, or if grep was not compiled with national
language support
       (NLS).

       GREP_OPTIONS
              This variable specifies default options to be placed
in front of
              any   explicit   options.    For example, if
GREP_OPTIONS is
              '--binary-files=without-match --directories=skip',
grep behaves
              as if the two options --binary-files=without-match
and --direc-
              tories=skip had been specified before any
explicit options.
              Option specifications are separated by whitespace.
A backslash
              escapes the next character, so it can be used to
specify an
              option containing whitespace or a backslash.

       GREP_COLOR
              Specifies the marker for highlighting.

       LC_ALL, LC_COLLATE, LANG
              These variables specify the LC_COLLATE locale, which
determines
              the collating sequence used to interpret range
expressions like
              [a-z].

       LC_ALL, LC_CTYPE, LANG
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full
[It]deft manuale full

Weitere ähnliche Inhalte

Andere mochten auch

Andere mochten auch (15)

Latin American Peasantry
Latin American PeasantryLatin American Peasantry
Latin American Peasantry
 
Peter O´Toole (1932-2013)
Peter O´Toole (1932-2013)Peter O´Toole (1932-2013)
Peter O´Toole (1932-2013)
 
Estudo de ROI com LotusLive Para efeito de Demonstração
Estudo de ROI com LotusLive Para efeito de DemonstraçãoEstudo de ROI com LotusLive Para efeito de Demonstração
Estudo de ROI com LotusLive Para efeito de Demonstração
 
Artist Edward Caruana Dingli (Malta)
Artist Edward Caruana Dingli (Malta)Artist Edward Caruana Dingli (Malta)
Artist Edward Caruana Dingli (Malta)
 
I Know What You Did on the Web
I Know What You Did on the WebI Know What You Did on the Web
I Know What You Did on the Web
 
Trinity Kings Family Leadership: *First Born Sons(Jesus "The King), 3-Sons, &...
Trinity Kings Family Leadership: *First Born Sons(Jesus "The King), 3-Sons, &...Trinity Kings Family Leadership: *First Born Sons(Jesus "The King), 3-Sons, &...
Trinity Kings Family Leadership: *First Born Sons(Jesus "The King), 3-Sons, &...
 
Surrealism & Visionary Art of Goran Mitrovic.
Surrealism & Visionary Art of Goran Mitrovic.Surrealism & Visionary Art of Goran Mitrovic.
Surrealism & Visionary Art of Goran Mitrovic.
 
Father's Day letter
Father's Day letterFather's Day letter
Father's Day letter
 
Grant writing class
Grant writing classGrant writing class
Grant writing class
 
Colors of Paradise.
Colors of Paradise.Colors of Paradise.
Colors of Paradise.
 
Ergonomics BY Muhammad Fahad Ansari 12IEEM14
Ergonomics BY  Muhammad Fahad Ansari 12IEEM14Ergonomics BY  Muhammad Fahad Ansari 12IEEM14
Ergonomics BY Muhammad Fahad Ansari 12IEEM14
 
Big Brother is a Tech Company
Big Brother is a Tech CompanyBig Brother is a Tech Company
Big Brother is a Tech Company
 
The Little Baker
The Little BakerThe Little Baker
The Little Baker
 
Little Artists (1 of 2)
Little Artists (1 of 2)Little Artists (1 of 2)
Little Artists (1 of 2)
 
Physical and chemical measurements BY Muhammad Fahad Ansari 12IEEM14
Physical and chemical measurements BY  Muhammad Fahad Ansari 12IEEM14Physical and chemical measurements BY  Muhammad Fahad Ansari 12IEEM14
Physical and chemical measurements BY Muhammad Fahad Ansari 12IEEM14
 

Ähnlich wie [It]deft manuale full

El canario timbrado español
El canario timbrado españolEl canario timbrado español
El canario timbrado español
Agustin Bodes
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
Juan
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
Juan
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
Juan
 
La ansiedad en los deportistas
La ansiedad en los deportistasLa ansiedad en los deportistas
La ansiedad en los deportistas
DAVIDDINA
 
Bolognesi competitiva-tengo-un-sueño-acucho
Bolognesi competitiva-tengo-un-sueño-acuchoBolognesi competitiva-tengo-un-sueño-acucho
Bolognesi competitiva-tengo-un-sueño-acucho
Zuniga Agustin
 
Web Load Testing for Dummies
Web Load Testing for DummiesWeb Load Testing for Dummies
Web Load Testing for Dummies
Compuware APM
 
Robotica industrial practicas_tutorial1_mauricioarias_2011-II
Robotica industrial practicas_tutorial1_mauricioarias_2011-IIRobotica industrial practicas_tutorial1_mauricioarias_2011-II
Robotica industrial practicas_tutorial1_mauricioarias_2011-II
pfalari
 
Canarios de canto y su cualidad hereditaria
Canarios de canto y su cualidad hereditariaCanarios de canto y su cualidad hereditaria
Canarios de canto y su cualidad hereditaria
Agustin Bodes
 
Premio nobel vargas llosa aprendiendo
Premio nobel vargas llosa   aprendiendoPremio nobel vargas llosa   aprendiendo
Premio nobel vargas llosa aprendiendo
Zuniga Agustin
 
Martes 19 uji eu julio 2011
Martes 19 uji eu julio 2011Martes 19 uji eu julio 2011
Martes 19 uji eu julio 2011
Miguel Mares
 

Ähnlich wie [It]deft manuale full (20)

Presentación del Mercado Nacional - Fitur 2011 - Gran Canaria
Presentación del Mercado Nacional - Fitur 2011 - Gran CanariaPresentación del Mercado Nacional - Fitur 2011 - Gran Canaria
Presentación del Mercado Nacional - Fitur 2011 - Gran Canaria
 
El canario timbrado español
El canario timbrado españolEl canario timbrado español
El canario timbrado español
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
 
Estructura informe-sc
Estructura informe-scEstructura informe-sc
Estructura informe-sc
 
Human resource management in eresource erp
Human resource management in eresource erpHuman resource management in eresource erp
Human resource management in eresource erp
 
La ansiedad en los deportistas
La ansiedad en los deportistasLa ansiedad en los deportistas
La ansiedad en los deportistas
 
Bolognesi competitiva-tengo-un-sueño-acucho
Bolognesi competitiva-tengo-un-sueño-acuchoBolognesi competitiva-tengo-un-sueño-acucho
Bolognesi competitiva-tengo-un-sueño-acucho
 
Frylow Triple Bottom Line Impact
Frylow Triple Bottom Line ImpactFrylow Triple Bottom Line Impact
Frylow Triple Bottom Line Impact
 
Field Marketing Plan (for Starkist)
Field Marketing Plan (for Starkist)Field Marketing Plan (for Starkist)
Field Marketing Plan (for Starkist)
 
Can Brands Have a Social Life? (OgilvyOne)
Can Brands Have a Social Life? (OgilvyOne)Can Brands Have a Social Life? (OgilvyOne)
Can Brands Have a Social Life? (OgilvyOne)
 
Ti cs y ed fisica
Ti cs y ed fisicaTi cs y ed fisica
Ti cs y ed fisica
 
TM-15
TM-15TM-15
TM-15
 
Web Load Testing for Dummies
Web Load Testing for DummiesWeb Load Testing for Dummies
Web Load Testing for Dummies
 
Robotica industrial practicas_tutorial1_mauricioarias_2011-II
Robotica industrial practicas_tutorial1_mauricioarias_2011-IIRobotica industrial practicas_tutorial1_mauricioarias_2011-II
Robotica industrial practicas_tutorial1_mauricioarias_2011-II
 
Canarios de canto y su cualidad hereditaria
Canarios de canto y su cualidad hereditariaCanarios de canto y su cualidad hereditaria
Canarios de canto y su cualidad hereditaria
 
The Strategic Business Values of IT Architecture for the Enterprise
The Strategic Business Values of IT Architecture for the EnterpriseThe Strategic Business Values of IT Architecture for the Enterprise
The Strategic Business Values of IT Architecture for the Enterprise
 
Premio nobel vargas llosa aprendiendo
Premio nobel vargas llosa   aprendiendoPremio nobel vargas llosa   aprendiendo
Premio nobel vargas llosa aprendiendo
 
Martes 19 uji eu julio 2011
Martes 19 uji eu julio 2011Martes 19 uji eu julio 2011
Martes 19 uji eu julio 2011
 
Marathon Toulouse Métropole résultats femmes
Marathon Toulouse Métropole résultats femmesMarathon Toulouse Métropole résultats femmes
Marathon Toulouse Métropole résultats femmes
 

[It]deft manuale full

  • 1. deft D ^ & ^ Z Z
  • 2. '>/ hdKZ/ >/E h^K WZD^^ /EdZKh/KE WZ, d hd// / E dd/s/d / /'/d KZE^/ ZYh/^/d/ / ^/^dD d /Ehy /s EK WW/ /KE/ ss/ Z d /Ehy /s d /Ehy dyd DK '^d/KE DDKZ/ / D ^^ DKhEd DDKZ/ t KK , ^, D ^ D Yh/^//KE DDKZ/ / D ^^ Z /KE / hE d/D /E D Z/Z / Zd
  • 3. d /Ehy 'h/ DK /EdZKh/KE '^d/KE DDKZ/ / D ^^ KK , ^, Yh/^//KE / DDKZ/ / D ^^ ' '^d/KE / hE ^K KE hdKW^z yW/K d ydZ WWE/ W Z DdZ/ WZ / KKd ZE WWE/ D E W ' D ^ D 'ZW D
  • 4. ' Stefano “youngSTEr” Fratepietro si laurea nel 2006 in Information Technology and Management (Scienze di Internet) presso l’Università degli studi di Bologna con tesi di laurea in Informatica Forense dal titolo “Uno studio del caso virus Vierika”; certificato ISECOM OPST, attualmente è un security specialist presso l’ufficio it-security del CSE (Consorzio Servizi Bancari) ed effettua attività peritali per tribunali, forze dell’ordine e privati partecipando come consulente tecnico a casi di fama nazionale come “Buongiorno! Vitaminic” e “Pirelli-Telecom-Ghioni”. Dal 2005 è creatore e project leader del sistema DEFT. Saltuariamente effettua attività di docenza in Informatica Forense per Università italiane e corsi privati. E’ membro IISFA (Italian Chapter) dal 2008. Sandro “bUSBoy” Rossetti Alessandro Rossetti vive e lavora a Roma. Molti dei suoi interessi personali riguardano l'Information Technology, in particolare le problematiche di security e forensic. È membro di diverse organizzazioni indipendenti quali Isaca (Boad of Directors of the Rome Chapter), IACIS ed IISFA (Italian Chapter).
  • 5. E / d • • E E Z W E • • / • E K Y
  • 6. ^
  • 7. W /s d Z / /W
  • 8. / ^ ^ d D ' s Z d d D t d / ' h Y / h Y • • d 'Eh h 'Eh 'Eh 'W t ^ t d /
  • 9. W d h / d E E d /W
  • 10. Z W d ZKD d h Wh / D D d D d D d h^ d / d D t W
  • 11. d d / d y d / D K / D K / d t ^ ^ Dd t Z Z ^ Z  D ^ d / D s E K s t d K s D ^ t K s D ^ t W s t Z s h ^ Z W ^ ^ t
  • 12. y s h^ y Z h s / h W s s s t / ^ s t W s W d W yW W Z DD Z / W s Z Z ^ ^ sDD ^ ^ s t K D W s ^ s D W s E W Z W K W s W W Ky Z W W / s W W s / s W^d W / , s Z W s / sE W s s t W D s t s D , s s^ W D s , Z W K s t sE K s d ^ K s Wd W s ds Z s ^ Z Z d ^ t ^ Dh/ s d D s W ^ s
  • 13. d W /K^ d h /K^ h^ / • •
  • 14. W d • W/ • / • • •
  • 15. / d d Y d
  • 16. d ' • • • / • D / /
  • 17. • • / / W • • • • o o o o o o E
  • 18. Ed^ Ed^ K^ W d K ^ h ^ ^ D W d h h d Ed^ h D W
  • 19. t / t Y t d
  • 20. Y Y • • • • D D D Z Z Z Z Y D D , /
  • 21. ^ ^, E ^ E^ E/^d h^ ^, ^ , ^, ' ^, ^, ^, ^, ^, ^, / ^, ^, ^, D D
  • 22. /
  • 23. W • • • •
  • 24. Y
  • 25. h ^ D 'Dd K K
  • 26. d ^ D D d ^ Ed^ D Dd h^ D Z • • W ' D d
  • 27. / / ,
  • 28. d • • • • • • • • • • • • • • • • • •
  • 29. d 'h/ / d y y y d D t d t W d
  • 30. d / D D W s ' ' Z K D h
  • 31. E D d ' / yd D y h ' , , / / / / D D D K K ^ ^ d s tZZ y E t y ^ s y ^ d , ^ d W D K W W ^ d h t
  • 32. ' d E • • h Zt • h D D D Zt
  • 33. D D ZK W E ^ D D ^ t E^ /
  • 34. d h h
  • 35. d ' / / ^ W W ^ ^
  • 36. ' ' ' ' ' • • • E • ' W
  • 37. / Z ' E dyd h Z E
  • 38. , d , , , K
  • 39. ' d ^ • • s • • Z • ' • • • • h /
  • 40. h
  • 41.
  • 42. h
  • 43. '
  • 44. ' E • / • / • / • ^
  • 45. h d d /
  • 46. Z
  • 47. y d d y y /W /W y y E d / E d Y ^
  • 48. Y W E W ' y d y
  • 49. Z E
  • 50. s Z
  • 51. d d ^ d D t 'h/ d d • t d •
  • 52. d • W
  • 53. WWE/ W d D h^ D h^ , D D d d ^
  • 54. d d W/ W/ 'W 'W ' W ^ ^ W/ W/ WD W D sZ sZ y y /E ZD Z D /K^ ^ / / W 'Wd / / d W/ d 'Ks 'Ks ,t / / /D / /K^, D /K /W WEW /W ,W KKdW Z ZW /Ws /W /^ WEW /^ W W /^E /^E :Kz '
  • 55. sD s D / d W W KKW D D d D D D D DKh^ D^/ D ^ / W/ Dd Dd D d Ed EhD EhD 'EZ/ d/D d E^ E^ K^^ K^^ Ws KW^ W Z/ d W / / W Z/^ d W Z/^ W/ W/ W/ W/ WD/ d WD/ WEW W W WW W W WWd W W^ W^ Z D Z D ^ ^ ^^/ ^^/
  • 56. ^hZ/dz ^/Ehy ^ ^Z/ ^ ^, ^ , ^DW d ^DW ^W Z ^ ^t^h^W ^ ^h^WE ^ dZ dWD dWD d^ hD^ h^ D ^ h^ h^ h^,/h^ , / s s s' d s' sd s td t yd /D W yd DD y y y y D y y y y / h'^ Z E / KKd / W KKd
  • 57. d ^ E ^ ^E^/d/s d d / KDD E /E ^/ ,t W/ y W / W/ W/ W/ /ZY W/ Z^d y^d ^d ^
  • 58. W/ /K W/ W/ W/ ,t W/ / W/ ,t W/ W/ h' ,t W/ W/ h' KE/' W/ h' W/ KDWKEEd W/ KDWKEEd W/ W/ KDWKEEd W/ h' WZ/Ed W/ h' WZ/Ed W/ /EK d ^
  • 59. W/ W/ D D W/ ^ d ,t W/ ^ ,t W/ W/ /ZY W/ ,t W/ W/ /ZY W/ ,t W/ / /ZY /^ ,t W/ / /ZY W/
  • 60. ,t W/ ^^d ,t W/ d W/ /K^ K^ d t D t ,t W/ D K^ y K ,t W/ W/ ^ / ,t W/ D ,t W/ Z /ZY / K /K^ yd W/ ,t W/ ^ ^ W W/
  • 61. W/ Wd^ W/ Wd^ W/ Es^ ^/ E ^ ^ W/ ,t W/ h E E ,Wd W/ W/ K Z ^ /K ^ D /K W/ W/ D W/ W/ W/ K Z
  • 62. ,t K^^ / y / / Z D ,t ^^/ ^ ,t K^^ ^W ^ 'W 'W ,t ^^/ ^ ,t ^^/ ,t ^^/ ^ ,t ^^/ ^
  • 63. E ZD ,t y W D /KDDh W /K d K D /KDDh ,t :Kz D :Kz d :Kz d ^ ,t :Kz ^ ,t ^W Z W ^W Z W Wh ^W Z W Wh W
  • 64. W/ y W / W/ /K W/ /Ws ^ W/ y W / d d WD W D ^ ,t Ed Z Z/D / / ,t D ,t DKh^ D ,t ^^/ ^^/ ,t /D Z
  • 65. ,t Z ,t ^ d W^ ,t D^ K ,t ,t h / ,t y ,t y W W y D ^ ,t y ^ W y D D ^ ,t y ^ W y D , D
  • 66. ^ D s E ,t s D ^ / Z/^d ,t ^^/ ^ W K Ed D h'^ y K Wh ^ Wh d Wh d ^hZ/dz d
  • 67. W ^ ^ /K E ^/Ehy ^ ^ s ^ ^ /K h'^ y ,t / W/d 'EZ/ d/D K
  • 68. K ^ W/ ZD K^d^ sZ y ' /D D/W^ D/W^ W Z/^ ^ ^, ^ , ^W Z y /dEhD y Wh/ y ^ E Wh/ d
  • 69. WW ^ d DK K^ y , Z ,t Ed Z KD / ,t Ed Z KD /K ,t Ed Z KD ,t ^ E K h ^ h^
  • 70. h d Zd^ ^ ^ ^ h Zd /K DD/K ^ d ^ / ddz ^ s E d E ^
  • 71. ,t W/ ' / K W/ D' D' E Z E ^ d D' ^ ,t Ed ,t Ed ,t Ed ^ ,t :Kz D ^ E
  • 72. E W W/ t E E y W d ,t Ed ^ d , d d W/ ^,D E ^ ,t ^Z/ /K
  • 73. ,t ^Z/ ^ Z D /Ws ^ /Ws ^ y d DdZZ y t d y / D DdZZ d y W/E W/ ,t K^^ ^ / D W/ h'
  • 74. d D W/ K D W/ h D W/ t D W/ : d Ed ,t ^^/ KE/' zE D/ WZ/Ed h' d E K ^ h Zd /K DD/K d ^ y ^, /E
  • 75. ^ ^ K h^ ^ ^ / d s' y ' d ,t ^^/ W Z/^ ,t ^ y
  • 76. ^ /K^, ^ / WW ^, y ^ ' ^ y d DdZZ y t d y W/E W/ d/ d ^/Ehy ^ ^ s
  • 77. W/ Z ^ d Z^d ,t Ed d ^ E ' ^ ,t ^^/ ^ ,t ^^/ ^ ,t ^ / ^ , h^, h ^ , h^,
  • 78. dZ dZ / Wh Wh dZ d dZ d dZ
  • 79. ,t :Kz D E^ ^E^ W^y ^ ,t ZD y ' Zd 'Ks t t ,t ^^/ ^ / 'Wd W DZ 'Wd ,t ^^/ E EhD EhD EhD / ^'/ , '
  • 80. / / W/ , ^ d ,^d D' E KKd d d E s ,t /^E ^ Z D , ^ h'^ ZD ^, y ,Wd ,Wd ,Wd W/d /, s/ s ,Wd ,t y / , d
  • 81. ,t / WW y d , d K s D Wh ' Wh E ' ^ E sD /hs ,s s ^ sD / / sD /hs ,s sD / ,t K / / ,t d ,t W ,t W ,t ,t ,t hy hy ,t
  • 82. ,t W/W W W W/K^ hy ,t ,t Z ,t h ,t ZD ,t D/ ,t ^DD /K^ ,t Z ,t ^z^ D/E ,t D ^^/ /D D ^^/ ^ ,t /^E ,t / ^
  • 83. ,t / W/ / y W Wh E K DKE/dKZ Dt /d DKE/dKZ Dt /d W , Wh / Wh E / h E ^ /D
  • 84. /D /D d d /D ,t ^^/ ^ E Z E d h KKd ^ ,t / d/ y D D Z / /KDDh D Z
  • 85. K / D Z D Z D Z / D t d K t /Kd / DD/K
  • 86. / ,t /K D ^ y /K ^ ^ E /W WEW ^ ,t ^ /K /ZY / W ^ ,t ^^/ /D ^ Z / ^ ,t
  • 87. t / ,t t / /^ WEW ZW E ^DW / Wh d Wh ^DW z Wh Wh Wh d Wh d Wh
  • 88. ,t Ed ,t :Kz ^ ,t ZD D' E y / WW d d d D / D d D d , d E Wd , D , D E ' ,t ,/ h^ d h^ W/ d
  • 89. t ' ,t Z h^ ^ ' ^ D/W^ D Z D E s E y W E sD / D^Z 'W sD sD D
  • 90. sD ^sD sD D DDh W sD / / sD / DDh / sD / sD / W dWZ sD / / sD / s W / d /
  • 91. WW WW y W/ W/ /K^ y W/ / d D W d ^ d D W d ^ d D d W/ ZKD D D D ZKD / d / ,W /K^ / d W/ / d d / s / WKZd s/ WKZd s/ d / / / WKZd s/
  • 92. / / / s/ s/ WDW / s/ d s ' ' d / WKZd ^ d ' ' d d EY /Ed/z /
  • 93. E Z D ^ W E^ E E^ dW d E^ D E^ hW ,t DKh^ D D / d ZE DZ' ZE Zd ZE Z/d ZE ZZ
  • 94. ZE t ZE/E' ZE EKd/ ZE /EK ZE h' ^ D d d W ^ h ^ / / ^
  • 95. E ^ Wh d E ^DW Wh Wh /K Ed ,t ^^/ / ^
  • 96. D' E KKd ^DW D ^DW /K W/ KKW D ^^/ D hE ^ ^^/ D hE ^ / y D y ^ ,t Z / ^ D
  • 97. ^ D D' E KKd y h t W/ Z D h'^ y D D' E ^, D E y ^ /K^ ^ D' D' E Z D' D' E W/ D W/ Z
  • 98. D' D' E W/ D Z y ^ /K^ ^ , /K^ y h y h
  • 99. E y ^ D ,t ^ D ^ / ^ /ZY D ' W d D ' y D'Wd D ' /K^ d /K^ ,t ZD D' E KKd ZD ,t E D/E/
  • 100. d dd d dd d s' ^ dd d dd s^ 'W/K d s' Z d E t KE/' h' DDKZz /E/d / ZE h' DKh^ D DKh^ ,
  • 101. DKh^ s D' E y / WW d / / ,t K^^ Dd W Dd Dd Z Dd Dd ^ ,t Dd K E E
  • 102. ^ K E E d D K E E K ZD ZD ^ :/s ^ h^ ,t D D d h^ D' y / h D' y h / DdZZ y
  • 103. Z h / ^ Ed ^ / Z/^ E EZ ,t ^^/ ^ EZ ,t ^^/ ,t ^^/ ,t ^^/ ,t ^^/ ,t ^^/ Ed E E d Ed/dZ KE/' E d d
  • 104. E^ ^ E^ ^ E^ dW E^ E^ E^ E^ E^ E^ / E^ d E sZ ^, ^
  • 105. ED/ E h'^ y ^DW s /K W/ ED/ W/ ED/ E d W/ t ED/ d / Ed ^ h'^ y d ,t E
  • 106. K d s' DD EhD ^ ^ E ZD ^DW W/ d /K W/ WW d WW ZD h'^ y h^, E ,t ^^/ D ^^/ ^, ^W y /
  • 107. / y K y W y d ^, Wh h'^ y d h'^ y d h'^ ZD ^, d ^, ZD d :d ' h'^ y d
  • 108. d d / d W , d /',d d K E s ^, /K y y W/ /ZY /^ WEW /^ W W Z D d Z D y / /KDDh
  • 109. / / /d y W/ W/ y W/ W/ WW WW / y D y D ' W d D ' y W d y Ws KW^ y ^DW ^DW hW WW WZ W
  • 110. ^t^h^W s' d , W ' / h'^ y ^z^EdZ ^z^y/d ^DW d ^DW hW /K W/ E E ^ ,t D h'^ y d ^ h^ h^ h^ ZD y W/ W/ / K d W sD ^hDD Zz
  • 111. ^ W K ^DW D ^DW EZ Wh^ ^Z/ h Zd E KKd ^ EhD d ^ ,t ^ KW Z t KD W K /
  • 112. ,t K^^ ,t h d y / Wh Wh ,t ^^/ ^^/ d ^ E ,t W ,t W yd d d ,t WWd ^ /ZY D h
  • 113. /ZY D /ZY D z /ZY D /ZY D /K W ,t WWd s/ d W ,t K^^ ,t ^^/ ^ , Wh d ,t /^E
  • 114. W Z/ ^ ^ W/ W/ y W/ y W/ y W/ /K^ h W/ y W/ /K^ h /K^ y W/ D y W/ D W/ / W/ Z W/ W/ W/ W/ W/ y DDKE/' W/ y DD/K W/ D Wh D^/ / W/ D^/
  • 115. D^/ W/ ^ /ZY d W/ /ZY /K W/ /ZY d /ZY /ZY W/ /ZY /ZY /ZY d y h W/ /K^ d d /ZY W/ y ZKD h ZKD y ZKD /K^ DDDD y ^ /ZY W/ z /ZY /^ y ^
  • 116. W/ZY /K^ E y ^ E y W/ y , /ZY /K^ W/Z d /K^ ,W W E K y d W/ /ZY y W/ /ZY W/ y h W/ W/ K /K^ / y / W/ W/ / /ZY W/ d y ZD
  • 117. d /yW Wh y d /KDDh ^ W/ d W/ D' d /K d D' d d d Kd ^ / W ' ^/ W/ W/ W/ Z Z h /K^ d
  • 118. d Z d Z W/ W/ ^ W D ^WD ^WD t ZE/E' ^WD W/ WD E W/ WD h W/ WD /K^ W/ h W/ WD /K^ W/ D^/ W/ WD W/ /Ed ,t WD/ W W Z/ ^ W Z/^ ,t W ^ ^ ^
  • 119. ^ d W Z/ ^ W Z/ ^ ^DW W/ D ^ /K W/ WWd Ed W ^ y D / KW K /KW WEW WEW d KE/' WEW h' D^^ '^ W/ /^ WEW
  • 120. /^ WEW /ZY /^ WEW D /^ WEW /K Z /K /^ WEW Z /W s^ dW /Ws^ h /W s^ WW D y WKZd^ E / WK^/y /
  • 121. ^ z E ,t W/ D/ ,t W/ / ^d d E W W W Z KE/' ^,^d d^ W sD Z D Z D ^ ,t DKh^ , W^ ,t DKh^ ^ ,t DKh^ d
  • 122. ,t DKh^ ^ ,t DKh^ ,t K^^ W ^ ^ ,K ^ W Z/ ^ E E K E ,t ZD ,t Z / ^ Z D ^ Z D ^ Z D ^
  • 123. E KKd ^ Zh E KKd ^ Zh E KKd ^ Zh E Z ^ h'^ y h'^ ZD h'^ / Z ^ E ^DW ^ ^ E h'^ y D' Z
  • 124. E ^t^h^W ^ ^t^h^W ^ W ' ^/ ^ Z D E Ed ^ ,t ^Z/ E E D E Z E E ^ E ^
  • 125. E t h h^ DD E D ^ E Z Ed ^ Ed ' ^E/ E ^^/ ^ ^^/ ^^/ ^^/ ^^/ ^ d ^
  • 126. ^^/ ^^/ ^hZ/dz / ^/Ehy ^ ^ / h'^ y Ed D D^Z ^ /K^ D^Z d Wh
  • 127. Wh ^^/ ,t ^ / ,t Dd DD ^h DD ^h KKD DD ^h d ^h d
  • 128. DD ^h D DD ^h D ,t y ^DW K Wh ^DW ,t WEW ^D ,t /K ,t ^/Z /K ,t /Z /K ,t /ZY ,t D ,t d d ^ 'W d /ZD ,t ^
  • 129. ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^
  • 130. ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^
  • 131. ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^
  • 132. ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ ,t ^ h^ ,t ^ h^ ,t ^ ,t ^ ,t ^ ,t ^ E ^ ,t ^ W / K ^ ,t ^Z/ ^ ^
  • 133. ,t Dd ,t K^^ ,t ^^/ ^^/ ^ dZ W Z/^ ,t ^ ^d/ ,W W Z/^ ^ ,t ^ ,t E^ ^hEZW ^ ZW
  • 134. E^ E^ Wh E/ Wh E^ E E^ Wh Wh EhD EhD E^ ^hEZW ^ ZW /
  • 135. / E / K d ,t D ,t ^^/ ^ E / h ,t ^^/ ^ ,t ZD ^h^WE ^ ^ Z D d Zd E Ed ^ dW ,t W/
  • 136. ,t W/ ,t W/ ^ W/ ,t W/ W/ ,t W/ ,t W/ ^ W/ ,t ^^/ ^ ^ ^ d
  • 137. ,t W^ ,t dWD ^ dWD ^ ^ d D' dZ dZ ^ ^ ,t K^^ D d d W d^ h
  • 138. ,t :Kz d ' y ^ ,t ^^/ h ^ ^^/ ^ ,t K^^ ,t K^^ E Ed ^ hW hW h^ / E ^ ^ E y ^ h^
  • 139. h^ d h^ d h^ h^ h^ ^ h^ h^ h^ ^ h^ h^ ^ h^ h^ d h^ h^ ^ h^ ZY 'd ^Z/WdKZ h^ h^,/ d h^ hD^ d h
  • 140. h^ hD^ s/ W/ s/ W/ s W / h^ ^ E ^E^ ^E^ /y W /dz W /dz ,hZ/^d/^ /'EKZ s/ EKd K D y ^dKZ^ W /dz K /'EKZ Z^/h ^/E' hE h EK tW dd
  • 141. y Wd Wd ,/',DD KE/' ,/',Wd y ^, s^K KDW d s^K s^K s^K y s^K KDW d s^K s^K s^K / ^DW ^ KKd y ^ ^ h d
  • 142. D' E KKd d D / Z D E ^ W sD W E ^ W sD W E ^ W sD W sd s' sd d sd
  • 143. d sd d sd ^ hd hd sd ^ sd ,t K^^ ,t ^^/ ^
  • 144. ,t ^^/ ^ ,t td y W/ h y Wd D D/ d ,t yd K yd / Z ^ Ed WD/
  • 145. WWE/ D E W ' D E ^ s K h d d d d d d s
  • 146. d y^ ^ ^ d K d d E ^ d ^
  • 147. d d d D E^ / hh/ h d d d K
  • 148. t E , d ZKD K / d d d d /
  • 149. t d / K d K s K W s D h d E^ d E^ d d /
  • 150. y^ D K y^ D d / d d E d D D d D h D d d d
  • 151. h^ E ^ h^ h^ d / dzW dzW ^ / / K / d t / D d d K
  • 152. h K / d K K K ^ d /K h d h
  • 153. / W d ^ d h d d
  • 154. d d d / D D /K / d d d d
  • 155. d s d ^ ^ z / d d d d d / / d z d Z ^
  • 156. D ^ ^ D K d t d t D D ^ ^ ^ ^ D ^ ^ ^ d ^
  • 157. ^ W W W E ' ' d , D ^ D : d D E D d d D d /
  • 158. d Wdz t h/ '/ '/ Wdz ^ Wdz d Wdz D E E ^ D d ^ ^ ^ WK^/y ^ d d h D
  • 159. h D E E d d / W d d t d ^ h/ '/ d h K K
  • 160. d d Z / d ^ E d d ^ D d / h t K ^ D d
  • 161. d d / ^ d  D E ^ ^ ^ d d ^ d d ^ d d d
  • 162. h d D^ K^ ^ d s d d Z E D^ K^ hE/y d d Z E Z E d W ^
  • 163. s s / s K s d ^ d d h h d h d h K s h K^ d D ^ D K^ ^ ^ ^ ZKD ZKD
  • 164. d ZKD ^ K ZKD^ D ^ ^ d d Z E d D /^K ZKD d s ^ E K^ Z Z
  • 165. Z Z hE/y Z Z D : t d ' Z Z Z Z ^// t ^ Z Z ^ K / ^ ^
  • 166. / d D ^ ^ ^ ^ d D : h d h hd D h ^// d h hd d KE/' E^ hd Z :^ d d d d h
  • 167. d D E D ^ / d D : d D / d d d E^
  • 168. / d E^ D / d d d E^ / d E^ D
  • 169. h s d Ed^ E h hd h , / d ^ d D d / D Z D h W d D Z d /
  • 170. d z z Z / d D : / / Wh d , ^,K/^/KE / / d d d d d z z Z d d
  • 171. / d d Z D / d sD d D E D : d D E D d D ' K d d ^
  • 172. ^ ^ D h K ^ d s ZKD ^ ^ ^ d ^ ^ ^ h ^ E^ ^ D ^ ^ ZKD K
  • 173. K s K W ^ K K D h^ d d W K ^ E ^ ^ K ^ ^ K^ ^ ^ ^ ,W hy E yd^ E yd E ^ ZKD
  • 174. K ^ d D K^ y ^ / d D ^ d K D d K d h d h t d d hd h / / hd
  • 175. / d d D h^ ^ h^ d ^ h^ d ^ d D E D
  • 176. ^ /K /K s K d /K D W/ D W/ ^ s d / ^ s d D h y^ d Z d / ^
  • 177. / d D K ^zE K ^zE d , K ^zE h ' h Z / / Z / Z / d D E W ^ K
  • 178. d d / / z Z KZ
  • 179. ^ / ^ ^ d D / / d E^ / E^ E^ , s d d hE/y
  • 180. h h^ h^ E D E D E /K D E E d d d d EhD D D
  • 181. E E D /Z , Z^d hd , Z^d hd h
  • 182. D ^zEKW^/^ ^Z/Wd/KE d hE/sZ^ d d D W d, Z^Ks d W d, Z^Ks KWd/KE^ h Z d d /
  • 183. d / ^ W h / h / Z Z ^ E / d d Z
  • 184. t K ^ W d d hE/sZ^ d d WZE' WEZ' d d ^ Z d d yKZ d d d d d yKZ / yKZ d d WZE' d WZE' d
  • 185. d WZE' d d WZE' d d D d Z^ ^ / D D D d Z^ ^ / D D ^, ^, /W^ ^, /W^ ^ Z ^, ^, /W^ ^, /W^ ' ^, ^, /W^ ^, /W^ ' ^, ^, /W^ ^, /W^
  • 186. ' d d ^ d ^ d / ^ d E s WZE' Es ^ d WZE' ^ d W d, Z^Ks , d W d, Z^Ks W d W d, Z^Ks ^ ^K /DWDEd d/KE
  • 187. d dZ ' d d/ W ^ ^, ^ KWd/KE / W ^, t / / ^, / d d /W^ t
  • 188. d / t h ^ D D Z Z ^ / d z 'Eh ' W d EK t ZZ Edz ^ d d / Z
  • 189. D D ^, ^, d t ^ s D y ^ /^ / /^ W E d / ^ K / / / ^ W
  • 190. d ' t d d d d , E ^ Z E^Z E / ^ d / / d y ^ hE/K ^hWWKZd ^ d EKd d D ^ hE/K ^hWWKZd D y ^ D t d y ^ d D
  • 191. d d / D y ^ hE/K ^hWWKZd 'Dd K t K D y ^ W / ' Y h Eh h / d ^
  • 192. d ^s d ^s d Z E W ^ ^ ^ ^ ^ s ^ h ^ h D t t h E h z h
  • 193. Z s Z ^ E h h h h h / ^ Z : / h d / Z t t ^ d h^ ' / h^ h^ ' d Wh/ KD /E W ' W 'W d ^ KWz/E' d EK DZ, Ed //dz /dE^^ KZ W Zd/h Z WhZWK^
  • 194. ^ D Z D d D Z d ^, Z d ^, /W^ d d Z d d t t W
  • 195. , d s h / , ^, 'K , ^, 'K , ^, 'K KWd/KE^ d K , ^, 'K KWd/KE^ E'h ' E'h ' /d E E 'ZW E D grep, egrep, fgrep, rgrep - print lines matching a pattern ^zEKW^/^ grep [options] PATTERN [FILE...] grep [options] [-e PATTERN | -f FILE] [FILE...] ^Z/Wd/KE
  • 196. grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. By default, grep prints the matching lines. In addition, three variant programs egrep, fgrep and rgrep are avail- able. egrep is the same as grep -E. fgrep is the same as grep -F. rgrep is the same as grep -r. KWd/KE^ -A NUM, --after-context=NUM Print NUM lines of trailing context after matching lines. Places a line containing -- between contiguous groups of matches. -a, --text Process a binary file as if it were text; this is equivalent to the --binary-files=text option. -B NUM, --before-context=NUM Print NUM lines of leading context before matching lines. Places a line containing -- between contiguous groups of matches. -b, --byte-offset Print the byte offset within the input file before each line of output. --binary-files=TYPE If the first few bytes of a file indicate that the file contains binary data, assume that the file is of type TYPE. By default, TYPE is binary, and grep normally outputs either a one-line mes- sage saying that a binary file matches, or no message if there is no match. If TYPE is without-match, grep assumes that a binary file does not match; this is equivalent to the -I option. If TYPE is text, grep processes a binary file as if it were text; this is equivalent to the -a option. Warning: grep
  • 197. --binary-files=text might output binary garbage, which can have nasty side effects if the output is a terminal and if the termi- nal driver interprets some of it as commands. -C NUM, --context=NUM Print NUM lines of output context. Places a line containing -- between contiguous groups of matches. -c, --count Suppress normal output; instead print a count of matching lines for each input file. With the -v, --invert-match option (see below), count non-matching lines. --colour[=WHEN], --color[=WHEN] Surround the matching string with the marker find in GREP_COLOR environment variable. WHEN may be `never', `always', or `auto' -D ACTION, --devices=ACTION If an input file is a device, FIFO or socket, use ACTION to pro- cess it. By default, ACTION is read, which means that devices are read just as if they were ordinary files. If ACTION is skip, devices are silently skipped. -d ACTION, --directories=ACTION If an input file is a directory, use ACTION to process it. By default, ACTION is read, which means that directories are read just as if they were ordinary files. If ACTION is skip, direc- tories are silently skipped. If ACTION is recurse, grep reads all files under each directory, recursively; this is equivalent to the -r option. -E, --extended-regexp Interpret PATTERN as an extended regular expression (see below). -e PATTERN, --regexp=PATTERN Use PATTERN as the pattern; useful to protect patterns beginning with -. -F, --fixed-strings
  • 198. Interpret PATTERN as a list of fixed strings, separated by new- lines, any of which is to be matched. -f FILE, --file=FILE Obtain patterns from FILE, one per line. The empty file con- tains zero patterns, and therefore matches nothing. -G, --basic-regexp Interpret PATTERN as a basic regular expression (see below). This is the default. -H, --with-filename Print the filename for each match. -h, --no-filename Suppress the prefixing of filenames on output when multiple files are searched. --help Output a brief help message. -I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without- match option. -i, --ignore-case Ignore case distinctions in both the PATTERN and the input files. -L, --files-without-match Suppress normal output; instead print the name of each input file from which no output would normally have been printed. The scanning will stop on the first match. -l, --files-with-matches Suppress normal output; instead print the name of each input file from which output would normally have been printed. The scanning will stop on the first match. --label=LABEL Displays input actually coming from standard input as input com- ing from file LABEL. This is especially useful for tools like zgrep, e.g. gzip -cd foo.gz |grep --label=foo something --line-buffered Use line buffering, it can be a performance penalty.
  • 199. -m NUM, --max-count=NUM Stop reading a file after NUM matching lines. If the input is standard input from a regular file, and NUM matching lines are output, grep ensures that the standard input is positioned to just after the last matching line before exiting, regardless of the presence of trailing context lines. This enables a calling process to resume a search. When grep stops after NUM matching lines, it outputs any trailing context lines. When the -c or --count option is also used, grep does not output a count greater than NUM. When the -v or --invert-match option is also used, grep stops after outputting NUM non-matching lines. --mmap If possible, use the mmap(2) system call to read input, instead of the default read(2) system call. In some situations, --mmap yields better performance. However, --mmap can cause undefined behavior (including core dumps) if an input file shrinks while grep is operating, or if an I/O error occurs. -n, --line-number Prefix each line of output with the line number within its input file. -o, --only-matching Show only the part of a matching line that matches PATTERN. -P, --perl-regexp Interpret PATTERN as a Perl regular expression. -q, --quiet, --silent Quiet; do not write anything to standard output. Exit immedi- ately with zero status if any match is found, even if an error was detected. Also see the -s or --no-messages option. -R, -r, --recursive Read all files under each directory, recursively; this is equiv- alent to the -d recurse option.
  • 200. --include=PATTERN Recurse in directories only searching file matching PATTERN. --exclude=PATTERN Recurse in directories skip file matching PATTERN. -s, --no-messages Suppress error messages about nonexistent or unreadable files. Portability note: unlike GNU grep, traditional grep did not con- form to POSIX.2, because traditional grep lacked a -q option and its -s option behaved like GNU grep's -q option. Shell scripts intended to be portable to traditional grep should avoid both -q and -s and should redirect output to /dev/null instead. -U, --binary Treat the file(s) as binary. By default, under MS- DOS and MS- Windows, grep guesses the file type by looking at the contents of the first 32KB read from the file. If grep decides the file is a text file, it strips the CR characters from the original file contents (to make regular expressions with ^ and $ work correctly). Specifying -U overrules this guesswork, causing all files to be read and passed to the matching mechanism verbatim; if the file is a text file with CR/LF pairs at the end of each line, this will cause some regular expressions to fail. This option has no effect on platforms other than MS-DOS and MS-Win- dows. -u, --unix-byte-offsets Report Unix-style byte offsets. This switch causes grep to report byte offsets as if the file were Unix-style text file, i.e. with CR characters stripped off. This will produce results identical to running grep on a Unix machine. This option has no effect unless -b option is also used; it has no effect on plat-
  • 201. forms other than MS-DOS and MS-Windows. -V, --version Print the version number of grep to standard error. This ver- sion number should be included in all bug reports (see below). -v, --invert-match Invert the sense of matching, to select non-matching lines. -w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word con- stituent character. Similarly, it must be either at the end of the line or followed by a non-word constituent character. Word- constituent characters are letters, digits, and the underscore. -x, --line-regexp Select only those matches that exactly match the whole line. -y Obsolete synonym for -i. -Z, --null Output a zero byte (the ASCII NUL character) instead of the character that normally follows a file name. For example, grep -lZ outputs a zero byte after each file name instead of the usual newline. This option makes the output unambiguous, even in the presence of file names containing unusual characters like newlines. This option can be used with commands like find -print0, perl -0, sort -z, and xargs -0 to process arbitrary file names, even those that contain newline characters. -z, --null-data Treat the input as a set of lines, each terminated by a zero byte (the ASCII NUL character) instead of a newline. Like the
  • 202. -Z or --null option, this option can be used with commands like sort -z to process arbitrary file names. Z'h Z yWZ^^/KE^ A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expres- sions, by using various operators to combine smaller expressions. grep understands three different versions of regular expression syntax: basic, extended, and perl. In GNU grep, there is no difference in available functionality using either of the first two syntaxes. In other implementations, basic regular expressions are less powerful. The following description applies to extended regular expressions; dif- ferences for basic regular expressions are summarized afterwards. Perl regular expressions add additional functionality, but the implementa- tion used here is undocumented and is not compatible with other grep implementations. The fundamental building blocks are the regular expressions that match a single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with special meaning may be quoted by preceding it with a backslash. A bracket expression is a list of characters enclosed by [ and ]. It matches any single character in that list; if the first character of the list is the caret ^ then it matches any character not in the list. For example, the regular expression [0123456789] matches any single digit. Within a bracket expression, a range expression consists of two charac- ters separated by a hyphen. It matches any single character that sorts between the two characters, inclusive, using the locale's collating
  • 203. sequence and character set. For example, in the default C locale, [a-d] is equivalent to [abcd]. Many locales sort characters in dictio- nary order, and in these locales [a-d] is typically not equivalent to [abcd]; it might be equivalent to [aBbCcDd], for example. To obtain the traditional interpretation of bracket expressions, you can use the C locale by setting the LC_ALL environment variable to the value C. Finally, certain named classes of characters are predefined within bracket expressions, as follows. Their names are self explanatory, and they are [:alnum:], [:alpha:], [:cntrl:], [:digit:], [:graph:], [:lower:], [:print:], [:punct:], [:space:], [:upper:], and [:xdigit:]. For example, [[:alnum:]] means [0-9A-Za-z], except the latter form depends upon the C locale and the ASCII character encoding, whereas the former is independent of locale and character set. (Note that the brackets in these class names are part of the symbolic names, and must be included in addition to the brackets delimiting the bracket list.) Most metacharacters lose their special meaning inside lists. To include a literal ] place it first in the list. Similarly, to include a literal ^ place it anywhere but first. Finally, to include a literal - place it last. The period . matches any single character. The symbol w is a synonym for [[:alnum:]] and W is a synonym for [^[:alnum]]. The caret ^ and the dollar sign $ are metacharacters that respectively match the empty string at the beginning and end of a line. The symbols and respectively match the empty string at the beginning and end of a word. The symbol b matches the empty string at the edge of a word, and B matches the empty string provided it's not at the edge of a word.
  • 204. A regular expression may be followed by one of several repetition oper- ators: ? The preceding item is optional and matched at most once. * The preceding item will be matched zero or more times. + The preceding item will be matched one or more times. {n} The preceding item is matched exactly n times. {n,} The preceding item is matched n or more times. {n,m} The preceding item is matched at least n times, but not more than m times. Two regular expressions may be concatenated; the resulting regular expression matches any string formed by concatenating two substrings that respectively match the concatenated subexpressions. Two regular expressions may be joined by the infix operator |; the resulting regular expression matches any string matching either subex- pression. Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules. The backreference n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regu- lar expression. In basic regular expressions the metacharacters ?, +, {, |, (, and ) lose their special meaning; instead use the backslashed versions ?, +, {, |, (, and ). Traditional egrep did not support the { metacharacter, and some egrep implementations support { instead, so portable scripts should avoid { in egrep patterns and should use [{] to match a literal {. GNU egrep attempts to support traditional usage by assuming that { is not special if it would be the start of an invalid interval specifica- tion. For example, the shell command egrep '{1' searches for the two-
  • 205. character string {1 instead of reporting a syntax error in the regular expression. POSIX.2 allows this behavior as an extension, but portable scripts should avoid it. Es/ZKEDEd s Z/ ^ grep's behavior is affected by the following environment variables. A locale LC_foo is specified by examining the three environment vari- ables LC_ALL, LC_foo, LANG, in that order. The first of these vari- ables that is set specifies the locale. For example, if LC_ALL is not set, but LC_MESSAGES is set to pt_BR, then Brazilian Portuguese is used for the LC_MESSAGES locale. The C locale is used if none of these environment variables are set, or if the locale catalog is not installed, or if grep was not compiled with national language support (NLS). GREP_OPTIONS This variable specifies default options to be placed in front of any explicit options. For example, if GREP_OPTIONS is '--binary-files=without-match --directories=skip', grep behaves as if the two options --binary-files=without-match and --direc- tories=skip had been specified before any explicit options. Option specifications are separated by whitespace. A backslash escapes the next character, so it can be used to specify an option containing whitespace or a backslash. GREP_COLOR Specifies the marker for highlighting. LC_ALL, LC_COLLATE, LANG These variables specify the LC_COLLATE locale, which determines the collating sequence used to interpret range expressions like [a-z]. LC_ALL, LC_CTYPE, LANG