* SUMMARY: Altering date/time format for "ls" ?
@ 1997-03-14 0:01 BCN (Bios Computing and Networks)
0 siblings, 0 replies; only message in thread
From: BCN (Bios Computing and Networks) @ 1997-03-14 0:01 UTC (permalink / raw)
To: tru64-unix-managers
My original question:
Hello OSF-managers,
I am currently writing a script that requires the output from
the "ls -l" command (date/time field) to be normalised. At present, files older
than 6 months have the format
-rwxr-xr-x 1 bin bin 2203 Jul 25 1995 ttysrch
...and files less than 6 months have the format
-rw-r--r-- 1 root system 26 Mar 3 14:51 united.awk
I need them all to be shown in the first format.
Also, AIX (apparently) has a command called "istat" that will show the three
timestamps of a file all at once. Does Digital Unix have a similar command?
Any help would be greatly appreciated,
-------------------------------------------------------------------------------
Many thanks to Kazuro Furukawa, Dejan Muhamedagic, Matthew Calthrop, Rainer
Landes and Kurt Carlson for their replies.
Some of the replies suggested creating a new "locale source code
definition file" and using the "localedef" command to make a new locale. Thanks
for the suggestion, but it all looked a bit too difficult to me!
Another suggestion was to write a short c program that called the "stat"
function (see 'man 2 stat'), which returns all information about a particular
file (including the three datestamps in a consistent format!). Kazuro Furukawa
was kind enough to send some source code to do this.
Thanks again to all who responded,
David Shaw
United Energy,
Australia.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-03-14 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-14 0:01 SUMMARY: Altering date/time format for "ls" ? BCN (Bios Computing and Networks)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox