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

Re: find -printf ' %TT

On 2012-08-05 07:57 +0200, Mike McClain wrote:

>     Given "find / -type f -printf '%TT %p\n'".
> Gnu find previously printed hh:mm:ss for the files modify time
> but now is printing hh:mm:ss.0000000000 for all 33K+ files on
> my Squeeze system.
> The man page still says:
>     T      time, 24-hour (hh:mm:ss)

It also says, in the line above

     S    Second (00.00 .. 61.00).  There is a fractional part.

The same applies to T, it seems.

> Is there a way to get back the hh:mm:ss output as it used to be short
> of piping the output through sed 's/.0000000000//'?

Use %.8TT instead.  The sed command won't work anyway if the filesystem
supports high resolution timestamps.


Reply to: