#! /bin/bash # prop_settings.sh # this copies my shell config files to the other systems I work on. # if you don't have ssh keys set up, this can be annoying, as it will # ask for each of your passwords. # Check for the to_prop directory if [ -d "to_prop" ] then : else echo "Make a directory 'to_prop', and place the files you wish to spread \ in it." exit 1 fi # machines to copy to, and account names on them # change these values to ones that reflect your setup. for host in \ "example1.tld uname" \ "example2.tld uname" do set -- $host echo $1 scp to_prop/\.?[^.]* $2@$1:~ done