This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about the ls command


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]