4

hosts file

view full story
linux-howto

https://bbs.archlinux.org – Some improvements using pipes instead of tmp files. Awk is not my friend yet, but I'm learning, to use it in future version.  #!/bin/bash # # Credit to Ontobelli for this script # Version: 2012-02-18 07:35 UTC # # make hosts temporal directory HOSTSDIR=~/.hostsupdate mkdir -p "${HOSTSDIR}" # set output file OUTPUTFILE="/etc/hosts" if [ ! -f "${HOSTSDIR}/hosts.local" ]; then echo "You need to create "${HOSTSDIR}"/hosts.local containing the hosts you wish to keep!" exit 0 fi # download the mvps.org hosts file. wget -c -O "${H (HowTos)