add clean_known_hosts to bp
clean_known_hosts() {
if test -z "$@" ;
then
sed -r -i -e '/clonetest|ol7(dev|stig|minimal|(base)template)|10\.200\.20\.[0-9]+/d' ~/.ssh/known_hosts
else
for word in ${@:-NOTHING} ;
do
if fisnum "${word}"
then
sed -i -e "${word}d" ~/.ssh/known_hosts
else
sed -r -i -e "/${word}/d" ~/.ssh/known_hosts
fi
done
fi
}
Edited by B. Stack