More recent versions of mmfind support an -xargs option...  Run mmfind 
--help and see:

   -xargs [-L maxlines] [-I rplstr] COMMAND

      Similar to find ... | xargs [-L x] [-I r] COMMAND

      but COMMAND executions may run in parallel. This is preferred
      to -exec. With -xargs mmfind will run the COMMANDs in phase subject 
      mmapplypolicy options -m, -B, -N. Must be the last option to mmfind

This gives you the fully parallelized power of mmapplypolicy without 
having to write SQL rules nor scripts.

From:   John Hearns <>
To:     gpfsug main discussion list <>
Date:   02/21/2018 11:00 PM
Subject:        [gpfsug-discuss] mmfind - a ps.
Sent by:

Ps. Her is how to get mmfind to run some operation on the files it finds.
(I installed mmfind in /usr/local/bin)
I find this very hacky, though I suppose it is idiomatic bash
while read filename
   echo -n   $filename " "
done <<< "`/usr/local/bin/mmfind  /hpc/bscratch -type f`"
-- The information contained in this communication and any attachments is 
confidential and may be privileged, and is for the sole use of the 
intended recipient(s). Any unauthorized review, use, disclosure or 
distribution is prohibited. Unless explicitly stated otherwise in the body 
of this communication or the attachment thereto (if any), the information 
is provided on an AS-IS basis without any express or implied warranties or 
liabilities. To the extent you are relying on this information, you are 
doing so at your own risk. If you are not the intended recipient, please 
notify the sender immediately by replying to this message and destroy all 
copies of this message and any attachments. Neither the sender nor the 
company/group of companies he or she represents shall be liable for the 
proper and complete transmission of the information contained in this 
communication, or for any delay in its receipt. 
gpfsug-discuss mailing list
gpfsug-discuss at

gpfsug-discuss mailing list
gpfsug-discuss at

Reply via email to