<font size=2 face="sans-serif">More recent versions of mmfind support
an -xargs option...  Run mmfind --help and see:</font><br><br><font size=2 face="sans-serif">   -xargs [-L maxlines] [-I
rplstr] COMMAND</font><br><br><font size=2 face="sans-serif">      Similar to find
... | xargs [-L x] [-I r] COMMAND</font><br><br><font size=2 face="sans-serif">      but COMMAND executions
may run in parallel. This is preferred</font><br><font size=2 face="sans-serif">      to -exec. With
-xargs mmfind will run the COMMANDs in phase subject to</font><br><font size=2 face="sans-serif">      mmapplypolicy options
-m, -B, -N. Must be the last option to mmfind<br></font><br><font size=2 face="sans-serif">This gives you the fully parallelized
power of mmapplypolicy without having to write SQL rules nor scripts.</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">John Hearns <john.hearns@asml.com></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">gpfsug main discussion
list <gpfsug-discuss@spectrumscale.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/21/2018 11:00 PM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[gpfsug-discuss]
mmfind - a ps.</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><font size=2 face="Calibri">Ps. Her is how to get mmfind to run some
operation on the files it finds.</font><br><font size=2 face="Calibri">(I installed mmfind in /usr/local/bin)</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">I find this very hacky, though I suppose
it is idiomatic bash</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">#!/bin/bash</font><br><font size=2 face="Calibri"> </font><br><font size=2 face="Calibri">while read filename</font><br><font size=2 face="Calibri">do</font><br><font size=2 face="Calibri">   echo -n   $filename "
"</font><br><font size=2 face="Calibri">done <<< "`/usr/local/bin/mmfind
 /hpc/bscratch -type f`"</font><p><font size=3>-- 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. </font><tt><font size=2>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=vbcae5NoH6gMQCovOqRVJVgj9jJ2USmq47GHxVn6En8&s=F_GqjJRzSzubUSXpcjysWCwCjhVKO9YrbUdzjusY0SY&e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=vbcae5NoH6gMQCovOqRVJVgj9jJ2USmq47GHxVn6En8&s=F_GqjJRzSzubUSXpcjysWCwCjhVKO9YrbUdzjusY0SY&e=</font></tt></a><tt><font size=2><br></font></tt><p><p><BR>