From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1A0181381F3 for ; Fri, 13 Sep 2013 20:52:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64CD5E0C29; Fri, 13 Sep 2013 20:52:07 +0000 (UTC) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45E06E0C11 for ; Fri, 13 Sep 2013 20:52:06 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id q59so1668876wes.13 for ; Fri, 13 Sep 2013 13:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ZDi8zFaf/cBlckRQlFpQakVGyz4IcnrbRIfJJV490RU=; b=zjspbprbicCXCCv7sZw776IbfmdpR+nJsq56t8PHx6EVXsYL2NMYJQbvDk391AjbfW /SmQcBVsUxm/Q/JZyt0T0GwnDT0AClmCvwWLZ6auTvVayJYVNFF0u2mrOwge2dIYdI/u 5PzB8vnQuWoZZf93wEx0g2RerITF5s+V/MztMiBkE8dOi3anmowie9xIqy1CsBonrbgR E/b58m/G8bNpqiNA97uvQpxkK9cyhWeMUyd8Z2jR4zybmCVUErv7Z3bv5tniAyfZxMG4 6YckbKVhsOdpwKQiybDfLpMXW0kw7lnaT+hGPpyQ3QyKL++Z3EpVfOOSvBt1r7Yb9zF6 Hwag== X-Received: by 10.180.13.13 with SMTP id d13mr4124526wic.34.1379105524964; Fri, 13 Sep 2013 13:52:04 -0700 (PDT) Received: from [192.168.1.6] (213-154-212-42.static.vega-ua.net. [213.154.212.42]) by mx.google.com with ESMTPSA id li9sm6016625wic.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 13:52:04 -0700 (PDT) Message-ID: <52337AF3.6080109@gmail.com> Date: Fri, 13 Sep 2013 23:52:03 +0300 From: Alexander Kapshuk User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20121216 Icedove/3.0.11 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] look for a file type + sort References: <20130913044830.GA4586@syscon7.inet> In-Reply-To: <20130913044830.GA4586@syscon7.inet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 86de0267-3d74-4234-8103-262ff3193a68 X-Archives-Hash: ccb83c5efd6d8e340313378a5cd99ca4 On 09/13/2013 07:48 AM, Joseph wrote: > I want to list recursively certain type of files eg. *.pdf but I want > to display: date, path and newest file first. > > What is the easiest way of doing it? > Perhaps not the most elegant solution. ls -lt `du -a|grep -i '\.pdf$'|awk '{ print $2 }'`|awk '{ print $6,$7,$8,$9,$10,$11 }'