home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: Last modification time for a directory -- How?
- Message-ID: <1992Nov23.100217.2220@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1epmvvINN1b1@agate.berkeley.edu>
- Date: Mon, 23 Nov 1992 10:02:17 GMT
- Lines: 25
-
- In article <1epmvvINN1b1@agate.berkeley.edu>, ilan343@violet.berkeley.edu (Geraldo Veiga) writes:
- |> 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?
-
- Use ls -ltA and use the modification time of the first entry.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-