<div dir="ltr">find . | grep blah | ... <br><br>That way, you get the full path.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 7:31 PM, unsolicited <span dir="ltr"><<a href="mailto:unsolicited@swiz.ca" target="_blank">unsolicited@swiz.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ls -lR | grep blah | grep crud | grep junk > shortlist.txt ?<div><div class="h5"><br>
<br>
On 14-07-16 04:13 PM, R. Brent Clements wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I am searching through pretty well randomized directories for files using<br>
strings that I have massaged into the form *blah*crud*junk* using a<br>
spreadsheet.  So the command:<br>
<br>
find /home/rbclemen/src -iname *blah*crud*junk* -print0 | xargs -t -0 -I {}<br>
mv -v {} .<br>
<br>
does what I want it to.  It would be more useful, however, if the order of<br>
the words in the search string was not relevant.  it currently only finds<br>
instances where those words appear in that order, or as part of words that<br>
appear in that order.  Anyone able to suggest a way to make the matching of<br>
the multiple terms not order dependent?  Producing additional strings with<br>
the terms in a different order would be non trivial.<br>
<br>
Brent<br>
<br>
<br>
<br></div></div><div class="">
______________________________<u></u>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/<u></u>listinfo/kwlug-disc_kwlug.org</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/<u></u>listinfo/kwlug-disc_kwlug.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>

</div>