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

[no subject]



I often have to search the drive and look for certain patterns in certain
files.  So, a typical search might look like this:

locate txt | grep '\.txt$' | xargs grep 'mypattern'

I use locate because the drive is too large for find.  I use grep to
narrow the resultset down a bit, and then pipe it to good ole xargs.

Works great....except for those bloody Windows files.

I'm aware of getting around this by using find -print0 and xargs -0, but
as I mentioned before, find is too slow on this big drive.

Anyone know a way to solve this problem without renaming the files?

Thanks for the help!

John


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00780" href="msg00780.html">[ale] dreaded spaces in file names....</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="00791" href="msg00791.html">[ale] dreaded spaces in file names....</a></strong>
<ul><li><em>From:</em> dcorbin at machturtle.com (David Corbin)</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="msg00777.html">Latest wintendo email virus (was Re: [ale] Hi)</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00779.html">Latest wintendo email virus (was Re: [ale] Hi)</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00813.html">[ale] kernel 2.4 hard drive problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00780.html">[ale] dreaded spaces in file names....</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>