Chmod u + x script. sh : If you write a shell script and want to execute it, enable its execute bit. chmodu+xscript.sh:如果您编写了一个Shell脚本,并且希望执行它,那么需要设置其执行位。
In your code, replace value for source with the V6.1. x old Ant script file that you want to migrate. 在您的代码中,用您想要移植的V6.1.x旧的Ant脚本文件取代source的值。
Tone down the loop count on the previous example, add set - x to the beginning of the script as well as a comment, and execute it, as shown in Listing 12. 减小前一个示例中的循环计数值,在脚本的开头添加set-x和一个注释,见清单12。
The script reads the Members field from the source document, and for each person in that field, the script performs a new search with the new constructed keyword " fullname = " + doc. members ( x ). 脚本从源文档中读取Members字段,然后对于该字段中的每一个人,脚本执行一个新构造的关键字为“fullname=”+doc.members(x)的搜索。
Consider adding a debug mode or function within your script & say, with the set – x command. 考虑在脚本中增加调试模式或功能&比如使用set–x命令。