[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Tue Mar 16 12:59:55 2004 -->
- <!--x-from-r13: RPevqtrf ng nyfgba.pbz (Pevqtrf, Rbht) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] Simple script question -->
- <li><em>date</em>: Tue Mar 16 12:59:55 2004</li>
- <li><em>from</em>: DBridges at alston.com (Bridges, Doug)</li>
- <li><em>subject</em>: [ale] Simple script question</li>
That worked like a charm. Xargs seems to be one the most powerful tools in Linux.
Doug
-----Original Message-----
From: ale-bounces at ale.org [<a rel="nofollow" href="mailto:ale-bounces">mailto:ale-bounces</a> at ale.org]On Behalf Of Mike
Murphy
Sent: Tuesday, March 16, 2004 12:40 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Simple script question
find . -type f |xargs cat |wc -l ??
seems to work on the absurdly small test directory I created.
Mke
Bridges, Doug wrote:
> I am trying to write a simple script that will recursively give me a line count of all of the files in a directory. Here is the command I am trying:
>
> wc -l < cat `find . -type f -name "*"`
>
> When I do this, I get:
> bash: cat: No such file or directory
>
>
> I suspect that some of the files might be too deep, or not exist. Also, I am doing this on cygwin, I don't know if this is some windows bug creeping in.
>
> Doug
>
>
>
> _______________________________________________________
>
> NOTICE: This e-mail message and all attachments transmitted with it
> may contain legally privileged and confidential information intended
> solely for the use of the addressee. If the reader of this message is not
> the intended recipient, you are hereby notified that any reading,
> dissemination, distribution, copying, or other use of this message or its
> attachments is strictly prohibited. If you have received this message in
> error, please notify the sender immediately by telephone
> (404-881-7000) or by electronic mail (postmaster at alston.com), and
> delete this message and all copies and backups thereof. Thank you.
> _______________________________________________________
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Murphy
781 Inman Mews Drive Atlanta GA 30307
Landline: 404-653-1070
Mobile: 404-545-6234
Email: mike at tyderia.net
Email Pager: pagemike at tyderia.net
AIM: mmichael453
JDAM: 33:45:14.0584N 84:21:43.038W
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
_______________________________________________
Ale mailing list
Ale at ale.org
<a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
_______________________________________________________
NOTICE: This e-mail message and all attachments transmitted with it
may contain legally privileged and confidential information intended
solely for the use of the addressee. If the reader of this message is not
the intended recipient, you are hereby notified that any reading,
dissemination, distribution, copying, or other use of this message or its
attachments is strictly prohibited. If you have received this message in
error, please notify the sender immediately by telephone
(404-881-7000) or by electronic mail (postmaster at alston.com), and
delete this message and all copies and backups thereof. Thank you.
_______________________________________________________
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00582" href="msg00582.html">[ale] Simple script question</a></strong>
<ul><li><em>From:</em> cshapiro at nubridges.com (Charles Shapiro)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00576.html">[ale] Secure NFS</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00578.html">[ale] Linux Show</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00583.html">[ale] Simple script question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00582.html">[ale] Simple script question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00577"><strong>Date</strong></a></li>
<li><a href="threads.html#00577"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>