Paul Jungwirth on 11 Apr 2012 09:13:37 -0700
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Sort a file tree by last modified time
|
- From: Paul Jungwirth <pj@illuminatedcomputing.com>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] Sort a file tree by last modified time
- Date: Wed, 11 Apr 2012 12:13:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EqSxWCyIoaPzZpdqw/txMDtEYOIPqpjYqDGEnNNKZjU=; b=IayKeYdQDvLrCSvBUlWdTZL3eKt7CDrm/BLy1tadMB/p8MdD8FBM11FSih4r8oBNKJ ZhpMSDKlIzz9RwKeQKidKoe9StqQ2pTPuCm2v3EkpTNBVZJ2hhr9pAaj3x7HNRM9E0UA vRWV9tq7vDqxcxHFFVaO4lpXW1AsmbJ/y6ts0EP4q9htq2ZAF6qHcezMJcLJ8hScDrdg awRvOBfQsP/m2J0fEypaWOUlsBY+O6AcNRPDTqEudNIj2byZefUswVnWPNhn92TtmYOT UcEaAVpSh7o/eBzCWz8ZHMhc4LWjvFiB1fUUfPw0ckisCiw+IZ2v+yHDHycuDqNgKC+H DBIg==
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
>> Try:
>> Â Â Â Âfind content -type f -print0 | xargs -0 ls -ltr
>
> Wow, that's perfect. Thanks!
I suppose one caveat with this approach is that it will give incorrect
results on large trees, because files will only be sorted within each
invocation of `ls`. So some recently-changed files are going to be
buried up in the middle of the results. Hmm.
Paul
--
_________________________________
Pulchritudo splendor veritatis.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug