ATM when testing deployment flow:<p><pre><code>  function sd()  {
  n=2
  while [ $n -gt 0 ]
    do
      sed -i &#x27;&#x27;&quot;${1}&quot;&#x27;d&#x27; $HOME&#x2F;.ssh&#x2F;known_hosts
      n=$(($n-1))
    done
  }</code></pre>
I like sed.