Commit fa3420ce authored by Peter Kovary's avatar Peter Kovary
Browse files

Sanitise found hosts

parent 68fec161
......@@ -15,8 +15,7 @@ if [ ! -f ./.hosts ]; then
do
hostlist+=(`host $ip | awk '/pointer/ { print $5 }' | sed -e 's/\./ /g' | awk '{print $1}'`)
done
echo ${hostlist[*]} > ./.hosts
else
hostlist=(`cat ./.hosts`)
echo ${hostlist[*]} | sed -E 's/([^ ]*vm[^ ]* )|((cider|lexis)[0-9]{2} )//g' > ./.hosts
fi
hostlist=(`cat ./.hosts`)
echo ${hostlist[*]}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment