Conor Schaefer on 12 Apr 2012 12:14:52 -0700


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

Re: [PLUG] Sort a file tree by last modified time


On Thu, Apr 12, 2012 at 2:06 PM, Paul Jungwirth <once@9stmaryrd.com> wrote:
>> find /path/to/files -printf '%TY-%Tm-%Td_%TH:%TM:%TS\t%y\t%s\t%p\n' |
>> sort -r

Cutting out xargs does seem cleaner.

It's been a pleasure to see everyone's solutions. Maybe I should give
them all different names and put each one in ~/bin, so that I have 5x
the odds of remembering what I called it. :-)

I tend to stick things like this in ~/.bashrc, because I sync several dotfiles across computers, and that's one of them. I just called this one "newestfiles", so I can invoke it with:

ÂÂÂ newestfiles .

to get output related to the cwd. Any comments on best practices here? Is it bad form to junk up one's bashrc with custom functions?


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

___________________________________________________________________________
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