home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!spool.mu.edu!agate!violet.berkeley.edu!ilan343
- From: ilan343@violet.berkeley.edu (Geraldo Veiga)
- Newsgroups: comp.unix.shell
- Subject: Last modification time for a directory -- How?
- Date: 23 Nov 1992 04:34:07 GMT
- Organization: University of California, Berkeley
- Lines: 13
- Message-ID: <1epmvvINN1b1@agate.berkeley.edu>
- NNTP-Posting-Host: violet.berkeley.edu
-
- A question:
-
- How do I find the last modification time for a directory, meaning what
- was the last modification time for any file under the directory.
-
- More specifically, I would like to determine in a shell script, which
- of 2 directories was modified last. Just looking at ls output is not
- enough, since it doesn't reflect the modification tile of file in the
- directory's down tree.
-
- Any hints on how I do this?
-
- Thanks in advance.
-