This command will do it:
ls -l --full-time AFile.txt | awk '{print $7,$8,$10,$9}'
hope it helps
raymundo
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