On Thu, Feb 01, 2001 at 09:20:41AM +1100, Sonam Chauhan wrote:

> The following works well in most situations:
>   ls -l <dir>/<pattern> | awk '{print $8 "," $9}'              
[snip]
> Using find in the following manner seemed to work beautifully:
>   find  <dir> -name <pattern> -printf "%AH:%AM,%f\n" 
> However, the find  -format specification outputs data based on
> file *access* time instead of file *creation* times.

`ls -l' prints the time of the last modification to the file; you can't
get the creation time (it's not stored anywhere).  `find' can also
print the last modification time:

find  <dir> -name <pattern> -printf "%TH:%TM,%f\n" 


Cheers,

John
-- 
whois [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to