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 DD62E1381F3 for ; Fri, 13 Sep 2013 13:36:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7E26E0B39; Fri, 13 Sep 2013 13:36:05 +0000 (UTC) Received: from forward16.mail.yandex.net (forward16.mail.yandex.net [95.108.253.141]) by pigeon.gentoo.org (Postfix) with ESMTP id 651BDE084C for ; Fri, 13 Sep 2013 13:36:04 +0000 (UTC) Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward16.mail.yandex.net (Yandex) with ESMTP id 1175FD20372 for ; Fri, 13 Sep 2013 17:36:03 +0400 (MSK) Received: from smtp19.mail.yandex.net (localhost [127.0.0.1]) by smtp19.mail.yandex.net (Yandex) with ESMTP id E432EBE012D for ; Fri, 13 Sep 2013 17:36:02 +0400 (MSK) Received: from 31.207.68.232.pppoe-dynamic.pushkinnet.ru (31.207.68.232.pppoe-dynamic.pushkinnet.ru [31.207.68.232]) by smtp19.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WyFnhGuaDp-a2ImL0vv; Fri, 13 Sep 2013 17:36:02 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1379079362; bh=fh8QxsXXBMNOK3Zu7MpEWX54uq5AQiNSJQHKaG2fxik=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=X4ptK5EPUapxBBW/elsBk4U5dfzCvYvGbPsUr6RVysd3hlPJw1FOUZFmkoVJMeZrd CHEZqWJ4Duf9vFx9SwfQ3F9TO29PGB3ajeLqEPkEXHMrehRnesqqCr/DsMRy6X6iGq QQ9M1aqpAr1XDZY90f9jRpeC6anqGVrKtPpbD+OQ= Authentication-Results: smtp19.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <523314C2.3040308@yandex.ru> Date: Fri, 13 Sep 2013 17:36:02 +0400 From: "Yuri K. Shatroff" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130619 Thunderbird/17.0.6 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> <20130913051148.GB4586@syscon7.inet> <20130913062401.GK6228@Morgoth> In-Reply-To: <20130913062401.GK6228@Morgoth> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: e53fb8cd-7b1f-4754-b809-24f9336cd522 X-Archives-Hash: 96aa9deeba7251a7a37ddc9d265b63d3 On 13.09.2013 10:24, Jean-Christophe Bach wrote: [ ... ] > > This one should work: > > find /home/joseph/ -iname "*.pdf" -exec ls -l --sort=time {} + -exec is not suitable here because it spawns a `ls` process per each found entry; aside from being slow, this disallows sorting at all. You'd prefer find /home/joseph/ -iname "*.pdf" |xargs ls -l --sort=time or, to be space-proof find /home/joseph/ -iname "*.pdf" -print0 |xargs -0 ls -l --sort=time A little late but HTH. -- Best wishes, Yuri K. Shatroff