[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



PS.  My IRIX sysadmin class instructor said to remember that "find" and "man 
-k" are your friends.  Never forgot that!



Fletch wrote:
>>>>>>"Dow" == Dow Hurst <dhurst at kennesaw.edu> writes:
> 
> 
>     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.
> 
> 

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
************************************************************
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *
************************************************************


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--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>
<li><strong><a name="00141" href="msg00141.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00142.html">[ale] chmod question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00144.html">[ale] OT: c++ datatypes question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00142.html">[ale] chmod question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00145.html">[ale] chmod question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00143"><strong>Date</strong></a></li>
<li><a href="threads.html#00143"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>