Cat files without comments! only relevant information from config files will be shown
- PHP ini files (linnes commented with ;):
cat php.ini | egrep -v "^\s*(;|$)"
- Apache, Nginx conf files (lines commented with #):
cat php.ini | egrep -v "^\s*(#|$)"
- Can be also group and aliased in .bashrc or .zshrc
alias g='egrep -v "^\s*(#|$|;|; )"'
for using shortcut like:
cat php.ini | g