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 89C1C1381F3 for ; Fri, 13 Sep 2013 04:58:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE06EE0A88; Fri, 13 Sep 2013 04:58:48 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC417E0A69 for ; Fri, 13 Sep 2013 04:58:47 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id z5so1711693lbh.9 for ; Thu, 12 Sep 2013 21:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=03NYAMY3bZS6iUVUBFbffxLxoraTcN23OqsiIeHz+cI=; b=xB960U09LSUFG6HFBmgl8P8XhHPMDAjOCa3XJRwStBx8ICIn3x6AnAMMiQy+ohREwr WIidN58jFOKGiuFm3/+sXkrMxnzT8lwWQrdo2NbOk4h1s6OTeyW2uitAgnMbiqbr4WbC vM+oZVbfgGhQGXbGCm2NGFmz2KDqztiBZ3LQBiw/wGYEn+QP0M5Se/H3bjs+7ZwosEN7 8FXKgOlLIiFqVMypeaKT6VKYt/USmyr0tfnMu5QhINUf2A9D7F8Y9Wd1jSeCRB9GeEpD qA065R110/n+JU8wu75PkHqeN+XjBfAVIs+zxiZaT9w3ZVRsGXCizpQpGuEHcanzU7K+ rFkA== 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 X-Received: by 10.112.128.166 with SMTP id np6mr10413041lbb.7.1379048325957; Thu, 12 Sep 2013 21:58:45 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Thu, 12 Sep 2013 21:58:45 -0700 (PDT) In-Reply-To: <20130913044830.GA4586@syscon7.inet> References: <20130913044830.GA4586@syscon7.inet> Date: Thu, 12 Sep 2013 23:58:45 -0500 Message-ID: Subject: Re: [gentoo-user] look for a file type + sort From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2d187f80-918e-4f95-be07-2601b137619e X-Archives-Hash: bb87ab6c73df44851868839f3dbd2cda On Thu, Sep 12, 2013 at 11:48 PM, 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? ls -l --sort=3Dtime "$(find /path -iname "*.pdf")" If there are no spaces in the filenames/directories, you can drop the quotes from $(). Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico