delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/30/11:56:01

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: <000901c28035$9df0c820$cd8a9dc0@uk.aonix.com>
From: "Cliff Hones" <cliff AT aonix DOT co DOT uk>
To: "Stan Horwitz" <stan AT temple DOT edu>, <cygwin AT cygwin DOT com>
References: <Pine DOT OSF DOT 4 DOT 32 DOT 0210301143160 DOT 7564-100000 AT typhoon DOT ocis DOT temple DOT edu>
Subject: Re: Question about the ls command
Date: Wed, 30 Oct 2002 16:58:47 -0000
Organization: Aonix Europe Ltd.
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Stan Horwitz wrote:
> 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.

The 'man' command is your friend.  If you run "man ls" you will
find many options for controlling the output of ls, including
--full-time, which is probably what you need.

-- Cliff



--
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