bash中回显时缺少部分字符串

时间:2018-08-31 10:00:02

标签: bash echo

bash脚本是:

echo Updating hostname and IP address ...
echo ${config_template_ip}
echo "ssh-keygen -R ${config_template_ip} -f /home/testusr/.ssh/known_hosts"
echo ${config_template_ip}

输出为

Updating hostname and IP address ...
10.100.224.250
 -f /home/testusr/.ssh/known_hosts
10.100.224.250

为什么在STDOUT上没有“ ssh-keygen -R $ {config_template_ip}”,以及如何解决?

0 个答案:

没有答案