delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/30/12:03:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20021030085709.0292af40@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Wed, 30 Oct 2002 09:02:49 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Question about the ls command
In-Reply-To: <Pine.OSF.4.32.0210301143160.7564-100000@typhoon.ocis.templ
e.edu>
Mime-Version: 1.0

[ Move along...Move along. Nothing Cygwin-specific here. Just an RTFM. ]


Stan,

Use the "--full-time" option. Although the resulting format is distinct 
from either the "recent" or "old" date formats shown in the "-l" output 
format, it is uniform with no sensitivity to how far distant is the 
recorded file time.

Randall Schulz
Mountain View, CA


At 08:47 2002-10-30, Stan Horwitz wrote:
>Hello;
>
>I am new to cygwin, as I have just installed it on a Windows 2000 system, 
>so I hope this question is not a faq.
>
>With the "ls -l"  command, the modification date of Windows files is 
>shown, however, the format of this date varies. On files from a previous 
>year, the year of last modificatation is included in the output, but on 
>files that were recently created, the year is not included. Is there a way 
>to get ls to display the modification date in a consistent format, 
>regardless of when the file was last modified? I don't really care what 
>the format is, as long as it is consistent so that I can write some 
>scripts to parse the output of ls easily.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019