Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-20-2011, 08:07 AM   #1
Registered: Feb 2009
Posts: 33

Rep: Reputation: 15
Find command - result order


Could you please explain why the result order isn't in reverse time order as it is requestet by "xargs ls -ltr" command (ksh shell)? There are about 5000 files in dir.

$ find . -name "*201010*" -print |xargs ls -ltr |tail
-rw-r--r-- 1 oracle oinstall 54326 Nov 25 20:32 ./NP20101035623_W.log
-rw-r--r-- 1 oracle oinstall 1216870 Nov 29 09:50 ./201010308_W_OK.IS
-rw-r--r-- 1 oracle oinstall 2 Nov 29 10:03 ./201010392708_W.dsc
-rw-r--r-- 1 oracle oinstall 54428 Nov 29 10:03 ./201010312708_W.log
-rw-r--r-- 1 oracle oinstall 171 Dec 7 13:20 ./20101031_130937_W_OK.IS
-rw-r--r-- 1 oracle oinstall 54312 Dec 7 13:33 ./20101031_W.log
-rw-r--r-- 1 oracle oinstall 257 Jan 12 12:20 ./20101031W_OK.IS
-rw-r--r-- 1 oracle oinstall 54309 Jan 12 12:34 ./20101031W.log
-rw-r--r-- 1 oracle oinstall 215752 Oct 7 11:50 ./07102010__W_OK.IS.gz
-rw-r--r-- 1 oracle oinstall 71 Oct 7 18:05 ./20100930_W.dsc.gz

Thank you very much!

Last edited by laki47; 01-20-2011 at 08:10 AM.
Old 01-20-2011, 08:17 AM   #2
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,330

Rep: Reputation: 254Reputation: 254Reputation: 254
Can you post the stat of some files from the above list: ./NP20101035623_W.log, ./20101031W_OK.IS and ./20100930_W.dsc.gz?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using find and grep - how to exclude a result ? graziano1968 Linux - General 13 12-04-2010 11:02 PM
[SOLVED] Grep for the result of a command within the result of another command jasonws Programming 6 11-18-2010 03:39 PM
How to pass the result of a command to another command (like grep) desb01 Programming 4 06-25-2009 01:09 PM
Shell script to cd into the result of Find odinsride Programming 5 10-17-2007 11:33 AM
python - getting command result Hewson Programming 1 08-01-2007 07:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration