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.
Received on Thu Mar 13 1997 - 04:15:20 NZDT