tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "BCN (Bios Computing and Networks)" <BCN () mail ! ue ! com ! au>
To: tru64-unix-managers
Subject: SUMMARY: Altering date/time format for "ls" ?
Date: Fri, 14 Mar 1997 00:01:41 +0000	[thread overview]
Message-ID: <96078609810351.tru64-unix-managers.marc@archive.invalid> (raw)

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. 

                 reply	other threads:[~1997-03-14  0:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox