#!/usr/bin/env bash # # JimV-C # # Copyright (C) 2017 JimV # # Author: James Iter # # Sync the /etc/hosts file. # DHOSTS=`egrep -v '^$|localhost|jimvc' /etc/hosts | awk '{ print $1; }'` for dhost in ${DHOSTS} do scp /etc/hosts ${dhost}:/etc/hosts done