From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-150617-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id E74321381F3
	for <garchives@archives.gentoo.org>; Fri, 13 Sep 2013 05:04:18 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 22B1DE0BD0;
	Fri, 13 Sep 2013 05:04:10 +0000 (UTC)
Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id ED8BAE0B19
	for <gentoo-user@lists.gentoo.org>; Fri, 13 Sep 2013 05:04:08 +0000 (UTC)
Received: by mail-la0-f47.google.com with SMTP id eo20so592810lab.6
        for <gentoo-user@lists.gentoo.org>; Thu, 12 Sep 2013 22:04:07 -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=nEOdIqSSZAYFl5sb/wRjZfzSBNPnFfXxd4Ny3bgEfZ4=;
        b=wrNPjZprtRe/1ILiiPPXm4oAFGEUmrEGzw1Pj8bTaNLysnjOahCV/rqrldhuKgj75a
         w8OGIkr556R9QYwsZMPZulxmiJNydOmr7/239r5hkpECzb7r1esgFATfNJH/OkgXCIAH
         nJRg650VJX8VaPwzFEg/4Kn0SiK9+tELafIOwc819AoDdJEW1aNzNNimDt/2pckYq1db
         u/nbFVDTOzy3KuXULmAH4/5N5NuxaTXljJvDGgwY2mzEsYHE3s9j/QewDNY1kkO2SErW
         0Ci0COiv+upRAAsU2s/lTi9dILgcInLnLjl0ZJcEkd6tRyyKuNQzwsiIsbXnftlqx6Ih
         cSrQ==
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.152.87.143 with SMTP id ay15mr9390198lab.2.1379048647211;
 Thu, 12 Sep 2013 22:04:07 -0700 (PDT)
Received: by 10.114.96.2 with HTTP; Thu, 12 Sep 2013 22:04:07 -0700 (PDT)
In-Reply-To: <CADPrc80WJ90kqjoaJrBgK5O2dQ7airjAhrYLWSREkUfiivQ06w@mail.gmail.com>
References: <20130913044830.GA4586@syscon7.inet>
	<CADPrc80WJ90kqjoaJrBgK5O2dQ7airjAhrYLWSREkUfiivQ06w@mail.gmail.com>
Date: Fri, 13 Sep 2013 00:04:07 -0500
Message-ID: <CADPrc82NSorzJCX7CT6GL4mMNu+ZSsZdxFoD5RtQNAgas8+45g@mail.gmail.com>
Subject: Re: [gentoo-user] look for a file type + sort
From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: e2bda9f5-79ee-4772-8a2f-88c50510bf05
X-Archives-Hash: f2223d1c715b7b8874c5936af3f4fecf

On Thu, Sep 12, 2013 at 11:58 PM, Canek Pel=C3=A1ez Vald=C3=A9s <caneko@gma=
il.com> wrote:
> On Thu, Sep 12, 2013 at 11:48 PM, Joseph <syscon780@gmail.com> 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 $().

Sorry, it doesn't work with spaces even with the quotes; if you don't
have spaces in the directories/filenames, do

ls -l --sort=3Dtime $(find /path -iname "*.pdf")

If you have spaces, you need to set/restore IFS:

S=3D${IFS}; IFS=3D$'\n'; ls -l --sort=3Dtime $(find . -iname "*.pdf"); IFS=
=3D${S}

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