Skip to content

Instantly share code, notes, and snippets.

@pixmin
Created February 20, 2020 15:23
Show Gist options
  • Save pixmin/80049cec83860b2de545dcfdbb88554d to your computer and use it in GitHub Desktop.
Save pixmin/80049cec83860b2de545dcfdbb88554d to your computer and use it in GitHub Desktop.
#!/bin/bash
HOSTS='/etc/apache2/sites-enabled/'
for file in `ls $HOSTS`
do
echo $file
cat $HOSTS$file | grep --color -E "ServerName|DocumentRoot"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment