这是我保存在此文件中的代码: runner.csh 我想在 file1 中获取文件名。此 file1 包含一系列测试。对于这种情况, file1 是:list_of_tests.list)。
#!/bin/csh -f
set file1 = $<
echo "This is the file: $file1"
foreach line ("`cat $file1`")
echo "Test to be run: $line"
我希望能够在CSHELL中运行我的runner.csh,只要使用其他命令如下:
>setenv $HOME /home/project/user3
>runner.csh list_of_tests.list
>ls $HOME