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 #):
#!/usr/bin/env sh | |
#################################################################### | |
### ____ _____ ____ ___ _ _ _ ___ _ _ _ __ __ ### | |
### | _ \| ____| __ )_ _| / \ | \ | | / _ \| \ | | | \ \ / / ### | |
### | | | | _| | _ \| | / _ \ | \| | | | | | \| | | \ V / ### | |
### | |_| | |___| |_) | | / ___ \| |\ | | |_| | |\ | |___| | ### | |
### |____/|_____|____/___/_/ \_\_| \_| \___/|_| \_|_____|_| ### | |
#################################################################### | |
####### _ _ ___ _ _ ____ _ _ _ _ _____ _ _ ######## |
Cat files without comments! only relevant information from config files will be shown
cat php.ini | egrep -v "^\s*(;|$)"
#!/usr/bin/lua | |
-- Install at /lib/setup-mode/rc.d/S14-migrate (chmod +x) | |
local site = require 'gluon.site' | |
local uci = require('simple-uci').cursor() | |
local util = require 'gluon.util' | |
local pretty_hostname = require 'pretty_hostname' | |