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

unsolicited unsolicited at swiz.ca
Wed Jul 16 19:31:29 EDT 2014


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
>





More information about the kwlug-disc mailing list