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 BDDF61381F3 for ; Fri, 13 Sep 2013 13:43:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CEC8E0AEB; Fri, 13 Sep 2013 13:43:33 +0000 (UTC) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C4CCE0AD0 for ; Fri, 13 Sep 2013 13:43:32 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id tp5so2379079ieb.26 for ; Fri, 13 Sep 2013 06:43:31 -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; bh=CnAJvVHHRf7o3BEQLpETI+rShjNztqnec6Z9Tf6nCiU=; b=UaIIKrqytPy4i8cFIs3ShwU7sydBJGZKi1Pabp0KufIcxZtCAB+c81tzbudmMJw2AN SX4sxSmm4x2TVKHo0MvqxYZm3X1mgH7Qjgb7WBgjOx8MxGJ2WxhPyn03hUzPHPuaEg0g UEuaTJcWvDAcpiIoXV1sO3qfAJpk+cgif2RkwjoyRmIj7X4nc4iizTO7ioRpG0rS3Yhx 9h0lso+eQ4lrYC1HuirUUYNhLTnbv4dwoJvYIMor9WuFEHfhWk6dnUipivvdpkAP33CS 2pL6ZyXRNk4NxBzpb5qFH1mqzPMSfuQN9ewNbEaMMupTeNxiR+zpqgtXaC5HyVarzVij fUmA== 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.50.126.1 with SMTP id mu1mr1318060igb.57.1379079811597; Fri, 13 Sep 2013 06:43:31 -0700 (PDT) Received: by 10.50.158.163 with HTTP; Fri, 13 Sep 2013 06:43:31 -0700 (PDT) In-Reply-To: <523314C2.3040308@yandex.ru> References: <20130913044830.GA4586@syscon7.inet> <20130913051148.GB4586@syscon7.inet> <20130913062401.GK6228@Morgoth> <523314C2.3040308@yandex.ru> Date: Fri, 13 Sep 2013 21:43:31 +0800 Message-ID: Subject: Re: [gentoo-user] look for a file type + sort From: Mark David Dumlao To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: b79d49c6-7942-4f10-9509-464d7a9af2da X-Archives-Hash: 8718dfa0b4967fcca687b6dc7dc04c98 On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff wrote: > 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. This is incorrect. If you terminate exec with '+' instead of '\;', only a single instance of the command is run - the command line is built by appending each found file to the end of the {} placeholder. The only reason I see for it to fail is if you have so many files that it can't be passed to the argv of the receiving command. -- This email is: [ ] actionable [x] fyi [ ] social Response needed: [ ] yes [x] up to you [ ] no Time-sensitive: [ ] immediate [ ] soon [x] none