How can I echo commands in a tcsh script?

最后都变了- 提交于 2019-11-29 03:14:41

Put:

set echo and/or set verbose

at the top of your script. That will print out everything that happens in your script and are equivalent to the bash set -x and set -v commands.

Lets say your script name is tcsh_file Lets assume this file includes shebang as well.

now run this command on terminal

tcsh -x tcsh_file

this will print every line before executing it. it's basically an interactive mode of execution.

Is this what you needed?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!