print $path echo "not in server"enter code here 当shell脚本在本地或服务器上运行时,它们会给出完美的输出,但当shell脚本在远程服务器上运行时,shell脚本就不会运行 if [ -n "$1" ]; then
for HOST in ${done 当脚本运行到远程服务器时
在下面的out.txt中,我试图使用awk更新$9的内容。out.txt是由awk在管道|之前创建的。如果$9包含+或-,那么在$2 of file2中使用$8 of out.txt作为查找键。下面的awk是关闭的,但在|之后有语法错误,我似乎无法修复。谢谢:)。` and value of `$3` in `file2`awk<em