find -exec不运行exec部分

问题描述:

我在UrbanCode Deploy Shell步骤中执行以下命令。我想要的是针对所有找到的文件运行Util.sh。find -exec不运行exec部分

find . -type f -exec ls -al {} \; 
find . -type f -exec Util.sh -import source= {} overwrite=true \; 
Util.sh 

的输出如下,并第二个命令根本不运行。

delimiter specified is , 
executing script for all values in /app/bip/XMLP/Reports 

------------------------------- 
executing script for values: /app/bip/XMLP/Reports 
/bin/sh /var/tmp/shell_command_5832071109593396198.tmp /app/bip/XMLP/Reports 
------------------------------- 
command output: 
./BIP_Rollfoward/tmp/FlexPak/Asset_Allocation/Asset_Allocation.xdmz 
./BIP_Rollfoward/tmp/FlexPak/Asset_Allocation/Asset_Allocation.xdoz 
/var/tmp/shell_command_5832071109593396198.tmp: Util.sh: not found 
=============================== 
command exit code: 1 
+2

'/var/tmp/shell_command_5832071109593396198.tmp: Util.sh:未找到 –

您需要删除之间的空间 '=' 和 '{' 在源= {}

应该是:

source={}