[gpfsug-discuss] Question about Policies - using mmapplypolicy/EXTERNAL LIST/mmxargs
Marc A Kaplan
makaplan at us.ibm.com
Mon Dec 30 16:29:52 GMT 2019
Also see if your distribution includes samples/ilm/mmxcp
which, if you are determined to cp or mv from one path to another, shows a
way to do that easily in perl,
using code similar to the aforementions bin/mmxargs
Here is the path changing part...
...
$src =~ s/'/'\\''/g; # any ' within the name like x'y become x'\''y
then we quote all names passed to commands
my @src = split('/',$src);
my $sra = join('/', @src[$strip+1..$#src-1]);
$newtarg = "'" . $target . '/' . $sra . "'";
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20191230/4564cb57/attachment.htm>
More information about the gpfsug-discuss
mailing list