LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   find all files in current folder and all subfolders and sort all by timestamp (http://www.linuxquestions.org/questions/linux-newbie-8/find-all-files-in-current-folder-and-all-subfolders-and-sort-all-by-timestamp-646696/)

dlnlinux 06-03-2008 11:56 AM

find all files in current folder and all subfolders and sort all by timestamp
 
From the command line, is there a command to find all files in current folder and all subfolders and sort all by timestamp? found a way to sort them by size but so far have not found how to sort all the files by timestamp.

colucix 06-03-2008 12:21 PM

What about the following?
Code:

find /path/to/dir -type f -print0 | xargs -0 ls -lrt

dlnlinux 06-03-2008 12:29 PM

worked perfectly
 
Quote:

Originally Posted by colucix (Post 3173381)
What about the following?
Code:

find /path/to/dir -type f -print0 | xargs -0 ls -lrt


Worked perfectly, many thanks!


All times are GMT -5. The time now is 05:09 AM.