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 #!/bin/bash while read filename do 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.
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 to 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 <john.hearns@asml.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/21/2018 11:00 PM Subject: [gpfsug-discuss] mmfind - a ps. Sent by: gpfsug-discuss-bounces@spectrumscale.org 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 #!/bin/bash while read filename do 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 spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
participants (2)
-
John Hearns -
Marc A Kaplan
