[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Jun 7 13:52:39 2004 -->
- <!--x-from-r13: syrgpu ng culqrnhk.bet (Tyrgpu) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] chmod question -->
- <li><em>date</em>: Mon Jun 7 13:52:39 2004</li>
- <li><em>from</em>: fletch at phydeaux.org (Fletch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00140.html">[email protected]</a>> (Dow Hurst's message of "Mon, 07 Jun 2004 13:43:27 -0400")</li>
- <li><em>references</em>: <<a href="msg00133.html">[email protected]</a>> <<a href="msg00134.html">[email protected]</a>> <<a href="msg00140.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] chmod question</li>
Dow> How come you don't have to do this: find . \( -type f \)
Dow> -exec chmod 666 {} \;
Parens would be necessary to group conditions; they don't have
anything to do with subshells (in fact that's why they've got to be
backwhacked so the shell doesn't try and interpret them as such).
Multiple find predicates are treated as if they were joined with an
implicit -a (Boolean and operator) between them. So when you say:
find . -name foo -print
That's really:
find . -name foo -a -print
If you wanted to get fancy and do things like "directories, or files
named fred" you'd say:
find . \( -type d -o -name fred \) -print
Or more explicitly:
find . \( -type -d -o -name fred \) -a -print
The perl find2perl utility can be helpful translating a hairy find
command line into something (possibly :) more intelligible.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00142" href="msg00142.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="00143" href="msg00143.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00133" href="msg00133.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> graphicsguy at charter.net (Keith Morris)</li></ul></li>
<li><strong><a name="00134" href="msg00134.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
<li><strong><a name="00140" href="msg00140.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00140.html">[ale] chmod question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00142.html">[ale] chmod question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00140.html">[ale] chmod question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00142.html">[ale] chmod question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00141"><strong>Date</strong></a></li>
<li><a href="threads.html#00141"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>