Paul Jungwirth on 13 Apr 2012 06:11:10 -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 <once@9stmaryrd.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: Fri, 13 Apr 2012 09:11:04 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=u+OLwKHspiyDFiNVRJ4ATl1tE6ljX/08io59yKnCbnY=; b=0nBGNqmXrAdLJ7Wjdgzevu9Ogf/uupDfedvVysLJP4UqP9E28Om7kOGpGKxhKSD1w9 du3U7O2f6mNDjYloRR/Drqojr4+MxHpholqVSBZtRTBfp/AJW0Wdlnu4gyGlw4vjHKY0 d994W+GjudGF+VUq86WeBNmb7oXTzcJargH21KQUivSMe+ZeKwthq4zyLdY0osSrKbw8 umaWr9Qt7H17HOBSlqCX9vVcoGA8qkvte9U/m5Wc8Y02mpVx0ZyvElXDoHZCLB0mCITf KqyDqD1QWZKM4chUnUiemTD5iR0WVReOUTmDCKBj2O2mMHj1JgzIyR/cf3xEzNa2m8iz ETWQ==
- Reply-to: once@9stmaryrd.com, Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
>> find /path/to/files -printf '%TY-%Tm-%Td_%TH:%TM:%TS\t%y\t%s\t%p\n' |
>> sort -r
>
>ÂI can remember just so many
> switches.
Remembering codes for date formatting/parsing are the worst. But at
least in this command, the letters after the `%T` are the same as in
date(1), if that helps any:
date "+%Y-%m-%d_%H:%M:%S"
--
_________________________________
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