[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: Mon Jan 19 22:01:33 2004 -->
- <!--x-from-r13: wo ng qrifrn.pbz (Xbua Iryyf) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] dreaded spaces in file names.... -->
- <li><em>date</em>: Mon Jan 19 22:01:33 2004</li>
- <li><em>from</em>: jb at devsea.com (John Wells)</li>
- <li><em>subject</em>: [ale] dreaded spaces in file names....</li>
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>