From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 18:36:37 2010 Received: (at submit) by debbugs.gnu.org; 22 May 2010 22:36:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFxJ7-0000Ke-51 for submit@debbugs.gnu.org; Sat, 22 May 2010 18:36:37 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFx5w-0000EH-4n for submit@debbugs.gnu.org; Sat, 22 May 2010 18:23:00 -0400 Received: from lists.gnu.org ([199.232.76.165]:41107) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OFx5r-0003QY-KG for submit@debbugs.gnu.org; Sat, 22 May 2010 18:22:55 -0400 Received: from [140.186.70.92] (port=53291 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFx5p-0002xy-Fm for bug-coreutils@gnu.org; Sat, 22 May 2010 18:22:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFx5n-0003yL-Rd for bug-coreutils@gnu.org; Sat, 22 May 2010 18:22:52 -0400 Received: from mail-yw0-f178.google.com ([209.85.211.178]:43039) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFx5n-0003yF-OV for bug-coreutils@gnu.org; Sat, 22 May 2010 18:22:51 -0400 Received: by ywh8 with SMTP id 8so1482814ywh.6 for ; Sat, 22 May 2010 15:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Mf5FUx/kMcO6ldVDav52c7BWfSIrUzPG+lgH6Veq23g=; b=hXAwLguPnq3JDHo8Lf+lubSZm4jzfC4a1OpS3aubQYieDaibsSd3Kb+WmmHA13yWyq Rkjkm3ytBaFt+S8Mh6b4ySEmYityem7CfcB3eSFVG5B6UMwA0ZG7BcQ2/Ue7lQZwhswi HQsLt7IXOUmJRZ2hi+gDNO1InyU0dbw/CYFaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gVuOikVpoaXbUzhwIEhX/kcE/UpvSN4sP9eGx0GgVF6u66jGWfYgcZ6sVVfsOkJ+nj yMFSTin1j/ba7b7nKhRr5UIM1UdSYO8XvrSDgdCvb1YuaYfdThirMQ2LTwBGpDVap8TA ga+cBezXZJCnYOOuHk2RK1/5kSfoaStFX4JGE= MIME-Version: 1.0 Received: by 10.150.48.31 with SMTP id v31mr4884572ybv.289.1274566971182; Sat, 22 May 2010 15:22:51 -0700 (PDT) Received: by 10.150.190.8 with HTTP; Sat, 22 May 2010 15:22:51 -0700 (PDT) In-Reply-To: References: Date: Sat, 22 May 2010 17:22:51 -0500 Message-ID: Subject: How only show time of files with ls? From: Peng Yu To: bug-coreutils@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 22 May 2010 18:36:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 20:10:58 2010 Received: (at 6251) by debbugs.gnu.org; 23 May 2010 00:10:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFymP-0000zP-RE for submit@debbugs.gnu.org; Sat, 22 May 2010 20:10:57 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OFymN-0000zI-Ne for 6251@debbugs.gnu.org; Sat, 22 May 2010 20:10:56 -0400 Received: (qmail 14841 invoked from network); 23 May 2010 00:10:49 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 23 May 2010 00:10:49 -0000 Message-ID: <4BF871F0.5090609@draigBrady.com> Date: Sun, 23 May 2010 01:08:16 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Peng Yu Subject: Re: bug#6251: How only show time of files with ls? References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6251 Cc: 6251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 21:04:02 2010 Received: (at 6251-done) by debbugs.gnu.org; 23 May 2010 01:04:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFzbl-0001Ob-TD for submit@debbugs.gnu.org; Sat, 22 May 2010 21:04:02 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFzbk-0001OF-Ec for 6251-done@debbugs.gnu.org; Sat, 22 May 2010 21:04:00 -0400 Received: from dementia.proulx.com (dementia.proulx.com [192.168.230.115]) by joseki.proulx.com (Postfix) with ESMTP id A916C21363; Sat, 22 May 2010 19:03:56 -0600 (MDT) Received: by dementia.proulx.com (Postfix, from userid 1000) id 948283CC3A1; Sat, 22 May 2010 19:03:56 -0600 (MDT) Date: Sat, 22 May 2010 19:03:56 -0600 From: Bob Proulx To: Peng Yu Subject: Re: bug#6251: How only show time of files with ls? Message-ID: <20100523010356.GB17352@dementia.proulx.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 6251-done Cc: 6251-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) 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@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 From unknown Mon Aug 18 15:40:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 20 Jun 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator