home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4838 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  819 b 

  1. Path: sparky!uunet!think.com!spool.mu.edu!agate!violet.berkeley.edu!ilan343
  2. From: ilan343@violet.berkeley.edu (Geraldo Veiga)
  3. Newsgroups: comp.unix.shell
  4. Subject: Last modification time for a directory -- How?
  5. Date: 23 Nov 1992 04:34:07 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 13
  8. Message-ID: <1epmvvINN1b1@agate.berkeley.edu>
  9. NNTP-Posting-Host: violet.berkeley.edu
  10.  
  11. A question:
  12.  
  13. How do I find the last modification time for a directory, meaning what
  14. was the last modification time for any file under the directory.
  15.  
  16. More specifically, I would like to determine in a shell script, which
  17. of 2 directories was modified last.  Just looking at ls output is not
  18. enough, since it doesn't reflect the modification tile of file in the
  19. directory's down tree.
  20.  
  21. Any hints on how I do this? 
  22.  
  23. Thanks in advance.
  24.