GNU bug report logs - #6251
How only show time of files with ls?

Previous Next

Package: coreutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Sat, 22 May 2010 22:37:02 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 6251-done <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 6251-done <at> debbugs.gnu.org
Subject: Re: bug#6251: How only show time of files with ls?
Date: Sat, 22 May 2010 19:03:56 -0600
Peng Yu wrote:
> ls -go gives me permission and file sizes. But I only want to show
> time and file names. Would you please let me know what command to use?

Please don't ask the same question on many different mailing lists.
Note that I replied to your message in bug-bash with the following:

  http://lists.gnu.org/archive/html/bug-bash/2010-05/msg00140.html

  Since this has nothing to do with bash it is off topic for the
  bug-bash list.  In the future think about sending general help
  questions to the help-gnu-utils <at> gnu.org mailing list instead.  Or if
  you are specific about 'ls' then the coreutils <at> gnu.org mailing list of
  which 'ls' is a component.

  You might consider using 'stat' for this.

    stat --printf "%y %n\n" *

  Or 'find'.

    find . -maxdepth 1 -printf "%TF %TT %p\n"

  Or some combination of the two.

Bob




This bug report was last modified 15 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.