[kwlug-disc] A little help with the find command

Khalid Baheyeldin kb at 2bits.com
Wed Jul 16 19:48:02 EDT 2014


find . | grep blah | ...

That way, you get the full path.


On Wed, Jul 16, 2014 at 7:31 PM, unsolicited <unsolicited at swiz.ca> wrote:

> ls -lR | grep blah | grep crud | grep junk > shortlist.txt ?
>
>
> On 14-07-16 04:13 PM, R. Brent Clements wrote:
>
>> I am searching through pretty well randomized directories for files using
>> strings that I have massaged into the form *blah*crud*junk* using a
>> spreadsheet.  So the command:
>>
>> find /home/rbclemen/src -iname *blah*crud*junk* -print0 | xargs -t -0 -I
>> {}
>> mv -v {} .
>>
>> does what I want it to.  It would be more useful, however, if the order of
>> the words in the search string was not relevant.  it currently only finds
>> instances where those words appear in that order, or as part of words that
>> appear in that order.  Anyone able to suggest a way to make the matching
>> of
>> the multiple terms not order dependent?  Producing additional strings with
>> the terms in a different order would be non trivial.
>>
>> Brent
>>
>>
>>
>> _______________________________________________
>> kwlug-disc mailing list
>> kwlug-disc at kwlug.org
>> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>>
>>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>



-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
For every complex problem, there is an answer that is clear, simple, and
wrong." -- H.L. Mencken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20140716/5f446c92/attachment.htm>


More information about the kwlug-disc mailing list