bug-coreutils
[Top][All Lists]
Advanced

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

Re: filutils 4.1


From: Jim Meyering
Subject: Re: filutils 4.1
Date: Fri, 16 Jun 2006 07:52:44 +0200

address@hidden (Bob Proulx) wrote:
> goesh wrote:
>> Further, i have used find . -print
>> to do the same thing, however, i really like having the absoulte path in
>> outputs such as ls -ltr, and i could not see a way to get find to do
>> this.  
>> ...
>> $ ls -ltrZ
>
> Well, I can't think of a way to have find sort by time.  So it can't
> replace the ls -t behavior.  But otherwise the following is similar.
>
>   find $PWD/* -ls

Hi Bob,

You can make find print the mod-or-access time as an integer,
along with the full file name, and then sort the result on time stamp:

  find $PWD/* -printf '%A@ %p\n'|sort -nr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]