becomesif (-e !"/$home/.ssh/id_dsa.pub")
Once you grok that, you can go one step further and sayunless (-e "/$home/.ssh/id_dsa.pub")
becomesif (-e !"/$home/.ssh/id_dsa.pub") { `ssh-keygen -t dsa` };
`ssh-keygen -t dsa` unless (-e "/$home/.ssh/id_dsa.pub");
Update: Bad advice withdrawn
In reply to Re: Ssh Keys
by andyford
in thread Ssh Keys
by j^2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |