Re: find most recent file update in directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



John R. Dennison wrote:
> On Fri, Dec 09, 2011 at 03:15:53PM +0100, Mogens Kjaer wrote:
>>
>> Try something like:
>>
>> find . -type f -printf '%A@ %p\n' | sort -n | tail -1
>
> I believe you want %T@ instead of %A@ (modification time versus access
> time).  I would also suggest sort -nr to sort from most recent to least
> recent.

What's wrong with ls -laFrt?

       mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux