[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How only show time of files with ls?
From: |
Bob Proulx |
Subject: |
Re: How only show time of files with ls? |
Date: |
Sat, 22 May 2010 15:46:48 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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?
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@gnu.org mailing list instead. Or if
you are specific about 'ls' then the coreutils@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