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

[no subject]



Right, but if the number of files is too large, which is very likely to 
happen your solution won't work at all as you'll get a broken pipe.

Hence the reason I threw in the '-n 10'  You could certainly jump it up 
to say, 1000, but your solution will attempt to chown all the files and 
likely will puke and not work at all.

> 
> Also, note that I only searched for directories, and did a "chown -R
> foo.bar" on each directory, whereas you executed "chown foo.bar" on each
> file.

My follow solution used chown -R as well.

> 
> And actually, now that I think about that a little more, my way won't
> work at all, unless $DIRECTORY_TO_EXCLUDE is in the current directory.
> Thinking a little more, my way will probably be slower, because the
> recursive chown will chown everything in subdirectories multiple times.
> Ack! Disregard my last post!

Not necessarily, this has been a good discussion. :)


-- 
Until later, Geoffrey


</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="00711" href="msg00711.html">[ale] chown options</a></strong>
<ul><li><em>From:</em> FishR at bellsouth.net (Ryan Fish)</li></ul></li>
<li><strong><a name="00712" href="msg00712.html">[ale] chown options</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00748" href="msg00748.html">[ale] chown options</a></strong>
<ul><li><em>From:</em> jasonday at worldnet.att.net (Jason Day)</li></ul></li>
<li><strong><a name="00761" href="msg00761.html">[ale] chown options</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00773" href="msg00773.html">[ale] chown options</a></strong>
<ul><li><em>From:</em> jasonday at worldnet.att.net (Jason Day)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00777.html">[ale] Hylafax and Vonage</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00779.html">[ale] Hylafax and Vonage</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00773.html">[ale] chown options</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00713.html">[ale] chown options</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00778"><strong>Date</strong></a></li>
<li><a href="threads.html#00778"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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