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 bash | |
| # SET ENV VARIABLES FOR YOUR USE CASE | |
| # export RESTIC_PASSWORD= | |
| # export RESTIC_REPOSITORY=sftp:host:/mnt/folder | |
| # Each element is the exclusion path | |
| excludes=( | |
| "$HOME/.local" # Local configuration and application files | |
| "$HOME/.cache" # Temporary cache files |
| #!/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' | |