in reply to Re^4: Finding Oldest File in a Directory
in thread Finding Oldest File in a Directory

No, the -d option specifically limits the output to directories only, not its absence as you imply.
I know. That's why I wrote: This still has the possibility of returning a directory name though. -d implies that ls won't show the content of the directories, just the name. Which is exactly what I intended.
Perl --((8:>*
  • Comment on Re^5: Finding Oldest File in a Directory

Replies are listed 'Best First'.
Re^6: Finding Oldest File in a Directory
by Moron (Curate) on Oct 06, 2005 at 10:12 UTC
    What I am trying to draw your attention to is that it has ONLY the possibility of returning directory names which is not what the OP is asking for.

    -M

    Free your mind

      You are wrong. -d simply means that directories will be listed as themselves. From the man page:

      -d     List  names of directories like other files, rather than listing
             their contents.

      Perl Mouse is perfectly right about this.

      Makeshifts last the longest.

      A reply falls below the community's threshold of quality. You may see it by logging in.