Skip to content

Instantly share code, notes, and snippets.

View ricklancee's full-sized avatar
💭
Edit status

Rick Lancee ricklancee

💭
Edit status
View GitHub Profile
@ricklancee
ricklancee / host-manager
Last active August 29, 2015 14:24 — forked from nddrylliog/host-manager
Easily edit your /etc/host file
#!/bin/bash
_hosts() {
hostfile="/etc/hosts"
addusage="Usage: `basename $0` --add address host"
remusage="Usage: `basename $0` --remove host"
case "$1" in
--add)
if [ $# -eq 3 ]; then