stat FILENAME|grep Modify:|cut -d":" -f2

I don't know if that will give you Oracle-formatted dates (it's been a
while - I use Postgres Now), but it will definitely give you just the
timestamp.

Jon

On Wed, 19 Feb 2003, Mazza, Glen R., ,CPMS wrote:

> Hello,
>
> I would like to be able to obtain the full timestamp, and only the
> timestamp, of a file.  (This value will be sent to a database for
> record-keeping.)  I don't know of any command outside of "ls" that supplies
> this information, and even then ls supplies several other columns I don't
> need:
>
> -rw-r--r--   1 glen        mygrp            446 Oct  4 11:04 AFile.txt
>
> What I'm looking for is some "foo" command that will allow me to type in:
>
> foo AFile.txt
>
> and get a response--including the year--like:
>
> 2002 Oct 4 11:04
>
> This I can subsequently send to the Oracle database to load a DATE database
> column.
>
> Thanks,
> Glen
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to