其中的换行符被替换成了空格,若输出时保留换行,应该使用如下命令:
echo "${foo}"
2.为不同的主机,指定不同的ssh密钥
Host gitolite-as-alice HostName git.company.com User git IdentityFile /home/whoever/.ssh/id_rsa.alice IdentitiesOnly yes Host gitolite-as-bob HostName git.company.com User git IdentityFile /home/whoever/.ssh/id_dsa.bob IdentitiesOnly yes
原文地址:http://xiaosu.blog.51cto.com/2914416/1704273