stat -l filename

grep the output for "Modify" but you'll have to convert the date into
YYYYMMDD

> -----Original Message-----
> From: tek1 [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 2:36 PM
> To:   [EMAIL PROTECTED]
> Subject:      [newbie] find out the last modified date of a file
> 
> hello.
> 
> i'm trying to find out the last modified date of a specific file, using a
> script.
> 
> is there a command that's available where it can return the last modified 
> date of that file in the format YYYYMMDD?
> 
> thanks!  :) 
> 
>  << File: message.footer >> 


**********************************************************************
This email and any files sent with it are intended only for the named 
recipient. If you are not the named recipient please telephone/email  
the sender immediately. You should not disclose the content or        
take/retain/distribute any copies.                                    
**********************************************************************


Norwich Union Life & Pensions Limited
Registered Office 2 Rougier Street
York YO90 1UU
Registered in England Number 3253947
A member of the Norwich Union Marketing Group 
which is regulated by the Personal Investment Authority. 
Member of the Association of British Insurers.

For further Enquires 01603 622200 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to