小编avs*_*sun的帖子

if $( ssh user@host " [ -e file ] " ); 中的“if $”是什么意思?然后 ...?

我看到了if语句中条件使用 a 的脚本,但$ 我不明白为什么?

if $( ssh user@host " test -e file  " ); then 
   echo "File is there"
else
   echo "We don't that file on that host"
fi
Run Code Online (Sandbox Code Playgroud)

shell-script

2
推荐指数
2
解决办法
2493
查看次数

标签 统计

shell-script ×1