This command displays configuration file stripping commented and blank lines on Unix-like operating system.
grep -E -v '^\s*#|^\s*$|^\s*;' file
or
egrep -v '^\s*#|^\s*$|^\s*;' file
This command displays configuration file stripping commented and blank lines on Unix-like operating system.
grep -E -v '^\s*#|^\s*$|^\s*;' file
or
egrep -v '^\s*#|^\s*$|^\s*;' file