home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / rh / sample < prev   
Encoding:
Text File  |  1989-03-23  |  553 b   |  33 lines

  1. # This file contains 'rh' expressions.
  2. # '#' character causes the rest of the line to
  3. # be ignored...
  4. #
  5.  
  6. # ex1, ex2, ex3, ex4, ex5 come from the manual...
  7. #
  8. ex1:
  9.     (mode & 022) && (uid == $uucp );
  10.  
  11. ex2:
  12.     !uid && (mode & ISUID ) && (mode & 02);
  13.  
  14. ex3:
  15.     (size > 10*1024) && (mode & 0111) && (atime <= NOW-24*3600);
  16.  
  17. ex4:
  18.     size < (("*.c") ? 4096 : 32*1024);
  19.  
  20. ex5:
  21.     !(size % 1024);
  22.  
  23. # find files that have been created in the last hour.
  24. #
  25. new:
  26.     ctime > NOW-3600;
  27.  
  28. # find files who have not been modified in the last 30 days.
  29. #
  30. aged:
  31.     mtime < NOW-30*24*3600;
  32.  
  33.