Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get a space separated list of all hosts in an apache config so you can add them to your hosts file
grep -E "Server(Name|Alias)" httpd.conf | sort | uniq | cut -d " " -f 6 | tr "\n" " "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment