Paul Jungwirth on 11 Apr 2012 09:58:46 -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: Wed, 11 Apr 2012 12:58:40 -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=0cDJbajoewx2Dk7aZHvHULbRNLCqYNKezliJUoeZ9KM=; b=lbd+D8DPwo0m6Fs+ma7b6R4/TXpRRqLBU7cHTzuJaVNd2UyPjEw+Y6cBVbGzU6cAhc xp94vleLHzs4Vgsyt09b09z6kvIcjftHax1hAiOTxAjVuFjwZdow9/Wj3ZTPs9YqPb4O x9QwaH0BnEpoFM3es7uUSS7KosfadKlCQACWUjSxrW8gmzXZYCwJpWjIPqLx6AifoZHr TaeEt//3OxVXX7MbXh9Fu3DG3QPR5qhTKFFb/1HUQBzxrerV1MHkyIQHuZGcOnFAoWwS PJmzJRsoPxwy0Xj1PGJ+5u6ElfAPKODQR6K8xEHrsfKeR3pUAvgFFTtGJo73DU+8RWDL 703Q==
- Reply-to: once@9stmaryrd.com, Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
> find content -type f -print0 | xargs -0 ls -l --time-style='+%s' | sort -n -k 6
>
> Â Â Â Âfind /path/to/content -type f -print0 | \
> Â Â Â Â Â Â Â Âxargs -0 stat --format="%Z, %z, %F, %n" | sort -nr
These are both really nice. For the date formatting I think I prefer
find content -type f -print0 | xargs -0 ls -l
--time-style='+%Y-%m-%dT%H:%M:%S' | sort -k 6
Thanks again everyone!
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