find out the latest (last) modification date and time for given directory tree

By neokrates, written on July 3, 2011

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 31 views
Rate it
Ad
Poll
  • Which Selenium configurations do you use to test your web front end?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

You have /your/path/to/many/subdirs and want to know when it was changed last time, here is bash one-liner :

date -d @$(find /your/path/to/many/subdirs -type f -printf '%A@\t%p\n' | sort -r -k1 | head -n1 | cut -f1)

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +1 (from 1 vote)
1 votes 'YES'  0 votes 'NO'


TAGS
No tags for this post.

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


Leave a Reply