[Top][All Lists]

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

Re: find: sort files by date modified

From: Eric Blake
Subject: Re: find: sort files by date modified
Date: Fri, 20 Jul 2012 12:22:00 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 07/20/2012 11:18 AM, Enda wrote:
> find -mtime 0 -printf "%f\n"
> I use find to list files that were modified in the last 24 hours, how
> do I sort them in order of when they were modified?

find -mtime 0 -exec ls -d --sort=time {} +

Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]