:




""  -   ""  

    egrep   [ file ... ]

          (
 ),      -  ,    
 : . * ^ $ [ ]

    .        -   
    *        - "" (    )
    .*       -   
    ^  -     
    $  -     
   [] -     ,    


   :

    egrep ':0:0:' /etc/passwd

   :

    egrep -v ':0:0:' /etc/passwd

    ,       
a,b,e,d

    cat /etc/passwd | grep "^[abed].*"



find        , 
           -
        . , 
  -   .

    find    [ ... ]   //

        -  find:

  -name "*.c" -      *.c
  -type f     -    
  -type d     -   
  -size +500  -    500*512 
  -mtime -3   -    3- 
  -newer  filename -     ,  
                       filename

:    find      SHELL'
.    grep        ,
  .

        -  find

  -print      -     
  -exec    {} \;

        .

    - , 
  4       .

    find . -type f -mtime -4 -print

       *.bu, *%,   -
  .

    find   / \( -name "*.bu" -o -name "*%" \) -type f    \
    -atime +30 -exec  rm  {} \;

 "rm {} \;"  -   Unix,   -
       .   "{}"
      . -
,        .


Last-modified: Sun, 07 Aug 2005 11:47:11 GMT
: