[SWLUG] timestamp in bash script

Robert McQueen robot101 at debian.org
Thu Dec 19 05:46:01 UTC 2002


On Thu, Dec 19, 2002 at 03:29:19AM +0000, bascule wrote:
> is there a way to obtain the time and date of a file without having to parse 
> the ls command output?
> 
> bascule

Have a look at stat. It should be able to tell you anything you want to
know about a certain file or filesystem in whatever format you want.

Regards,
Rob





More information about the Swlug mailing list