list the timestamp of the files in "find" command

You can add to find the following expression:

-printf '%Tc %p\n'

to see something like

Sun Aug 14 06:29:38 2011 ./.nx/config/host.nxs

or -printf '%TD %TT %p\n' for

08/14/11 06:29:38.2184481010 ./.nx/config/host.nxs

or -printf '%T+ %p\n' if you have GNU find, to see

2011-08-14+06:29:38.2184481010 ./.nx/config/host.nxs

This last one, if available, is also useful for time sorting purposes.

See manual page of find, where it talks about printf.


A quick hack to get more details about the files found by find is to use the -ls output option.

find ./ -name "*.sqlite" -ls

For more precise results enzotib's answer is spot on.

Tags:

Find