Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
930 B

  1. #!/usr/bin/perl -P
  2. # $RCSfile: changes,v $$Revision: 4.1 $$Date: 92/08/07 17:20:08 $
  3. ($dir, $days) = @ARGV;
  4. $dir = '/' if $dir eq '';
  5. $days = '14' if $days eq '';
  6. # Masscomps do things differently from Suns
  7. #if defined(mc300) || defined(mc500) || defined(mc700)
  8. open(Find, "find $dir -mtime -$days -print |") ||
  9. die "changes: can't run find";
  10. #else
  11. open(Find, "find $dir \\( -fstype nfs -prune \\) -o -mtime -$days -ls |") ||
  12. die "changes: can't run find";
  13. #endif
  14. while (<Find>) {
  15. #if defined(mc300) || defined(mc500) || defined(mc700)
  16. $x = `/bin/ls -ild $_`;
  17. $_ = $x;
  18. ($inode,$perm,$links,$owner,$group,$size,$month,$day,$time,$name)
  19. = split(' ');
  20. #else
  21. ($inode,$blocks,$perm,$links,$owner,$group,$size,$month,$day,$time,$name)
  22. = split(' ');
  23. #endif
  24. printf("%10s%3s %-8s %-8s%9s %3s %2s %s\n",
  25. $perm,$links,$owner,$group,$size,$month,$day,$name);
  26. }