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