Re: [SLUG] timpestamps in bash

From: Dylan William Hardison (dylanwh@tampabay.rr.com)
Date: Fri Jul 25 2003 - 07:31:54 EDT


The command you want is stat(1).

Like so:

stat --format="%Y" foobar

that will print the mtime of the 'foobar' file
as seconds since the epoch. You can get all sorts of
information this way, see man stat.

--
        "Do you think what we're doing is wrong?"
        "Of course it's wrong!  It's illegal!"
        "I've never done anything illegal before."
        "I thought you said you were an accountant!"
-
GPG Fingerprint=D67D 2B75 53C6 9769 30E4  D390 239F C833 F32C F6F6
GPG KeyID=F32CF6F6



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:56:09 EDT