GNU bug report logs -
#6251
How only show time of files with ls?
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6251 in the body.
You can then email your comments to 6251 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6251
; Package
coreutils
.
(Sat, 22 May 2010 22:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Peng Yu <pengyu.ut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sat, 22 May 2010 22:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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?
--
Regards,
Peng
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6251
; Package
coreutils
.
(Sun, 23 May 2010 00:11:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6251 <at> debbugs.gnu.org (full text, mbox):
On 22/05/10 23:22, 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?
You could use cut to show the required columns:
ls -go | tr -s '[:blank:]' ' ' | cut -d' ' -f4-
Note if we supported `cut -d '[:blank:]'` adjacent
spaces in file names would not be squeezed.
You could also use find:
find . -maxdepth 1 -printf "%Tx %f\n"
There was also talk of adding format directives to ls,
but there were various issues raised with that:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14977
cheers,
Pádraig.
Reply sent
to
Bob Proulx <bob <at> proulx.com>
:
You have taken responsibility.
(Sun, 23 May 2010 01:05:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Peng Yu <pengyu.ut <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 23 May 2010 01:05:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 6251-done <at> debbugs.gnu.org (full text, mbox):
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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 20 Jun 2010 11:24:04 GMT)
Full text and
rfc822 format available.
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.