If you have ever visited document sharing websites such as Script Mafia, you must have seen how people offer you free downloads and others queue up with alternative download mirrors.
如果你曾经访问过ScriptMafia这样的文件共享网站,你一定见过人们如何为你提供免费下载和其他替代下载镜像的多个链接。
With a shell script, you can get more creative with the replacement, even providing a completely shell script-driven alternative to another command.
使用外壳脚本,您可以更创造性地处理替代,甚至为另一个命令提供完全由外壳脚本驱动的替代。
This allows the system administrator to inspect where the script failed so that immediate action can be taken to back-out the process or take an alternative action in completing the task.
这允许系统管理员检查脚本出现故障的位置,从而能够立刻采取措施来退出该过程,或通过采取其他备用措施来完成任务。
A common alternative to storing configuration items in an INI file is to use a simple PHP script to hold the data.
通常对于在INI文件中存储配置条目的一个替代办法是使用一个简单的php脚本来保持数据。
Another alternative is to reference the script when you first start up the ij application, essentially replacing stdin with the contents of the file (see Listing 12).
另一个备选方案是在第一次启动ij应用程序时引用脚本,实际上就是使用该文件的内容替换stdin(参见清单12)。
Actually, for this particular script, an alternative fix is to remove the return keyword from the line.
实际上,对于这段脚本,另外一种解决办法是删除return关键字。
The alternative is to save code in a file called a script and then run the interpreter in script mode to execute the script.
所以就有另一种选择了,把代码保存成脚本,然后用脚本模式让解释器来运行这些脚本。
An alternative to sequential execution transfers the program flow to another part of a script as a result of conditions that a script encounters.
另外一个循序执行的方法是,当程序码遇到条件结果时,将程序流程转送到指令码的另一个部分。
The bottom line is, if you find yourself tempted to put a script in each prim, stop and think about how you could do it differently with less scripts. There is almost always an alternative.
最起码的,如果你发现有必要在每个元件中加入脚本,也要停下来想想是否有其它的方法用更少的脚本完成它。
The bottom line is, if you find yourself tempted to put a script in each prim, stop and think about how you could do it differently with less scripts. There is almost always an alternative.
最起码的,如果你发现有必要在每个元件中加入脚本,也要停下来想想是否有其它的方法用更少的脚本完成它。
应用推荐