gary on 11 Apr 2012 08:57:43 -0700


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

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


=> Hi All,
=>
=> Does anyone know how to get a list of files (including within
=> subdirectories) sorted by last-modified time? I'm looking for output
=> roughly like this:
=>
=> [Feb 15 13:12]  content/code/encc.md
=> [Feb 15 13:12]  content/code/solsystem
=> [Feb 15 13:12]  content/code/solsystem/solsystem.tar.gz
=> [Feb 15 13:14]  content/code/upload
=> [Feb 15 13:15]  content/code/upload.md
=> [Feb 29 10:42]  content/code/launch4j-maven-plugin.md
=> [Feb 29 10:44]  content/code
=> [Mar 23 16:08]  content/widget.html
=>

Try:
        find content -type f -print0 | xargs -0 ls -ltr

                                     Gary Duzan



___________________________________________________________________________
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