From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Crufted with perl modules?
Date: Thu, 18 Nov 2010 00:59:28 +0200 [thread overview]
Message-ID: <201011180059.28992.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <AANLkTi=VASq19tztWJ6WQ3i0bi0XRzEedEswt4qL5qgw@mail.gmail.com>
Apparently, though unproven, at 00:49 on Thursday 18 November 2010, Adam
Carter did opine thusly:
> I wasnt familiar with + but it changes the default behavior of this;
> find /path -name something -exec ls -lS {} \;
> which will run ls -lS once for each file, and therefore Sort doesnt work as
> its only sorting a single file
>
> find /patch -name something -exec -ls -lS +
> which runs ls -lS once against all the files that find finds (added as
> additional arguments), and therefore Sort works.
Almost right.
-exec + will not append all filenames found and run one command,
it will append the maximum number of filenames that do not exceed the shell
command line limit, and do that enough times to get through all the filenames.
You will be surprised how easy it is to get a directory with enough files in
it to exceed the shell command length limit (65535 chars?). I have several
users who will gladly show you how it's done, and will show you where they
have each done it in multiple places
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2010-11-17 22:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 0:58 [gentoo-user] Crufted with perl modules? Grant
2010-11-17 1:21 ` Adam Carter
2010-11-17 1:42 ` Grant
2010-11-17 2:03 ` Willie Wong
2010-11-17 3:18 ` Grant
2010-11-17 9:10 ` Neil Bothwick
2010-11-17 9:19 ` Joerg Schilling
2010-11-17 12:52 ` Sebastian Beßler
2010-11-17 12:54 ` Albert Hopkins
2010-11-17 13:13 ` Sebastian Beßler
2010-11-17 14:09 ` Albert Hopkins
2010-11-17 14:09 ` Stroller
2010-11-17 22:14 ` John Campbell
2010-11-17 22:21 ` Sebastian Beßler
2010-11-17 22:49 ` Adam Carter
2010-11-17 22:59 ` Alan McKinnon [this message]
2010-11-17 23:03 ` Adam Carter
2010-11-17 23:10 ` Alan McKinnon
2010-11-17 14:15 ` Stroller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201011180059.28992.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox