Unix/Linux Egrep Strip Out Comments Blank Lines

Fig.01: Unix/Linux Egrep Strip Out Comments Blank Lines

Fig.01: Unix/Linux Egrep Strip Out Comments Blank Lines

The syntax is as follows to view all confg options with out comments:

egrep -v '^$|^#' file
egrep -v '^$|^#' file | less
egrep -v '^$|^#' file | more
egrep -v '^$|^#' file | head
egrep -v '^$|^#' file | tail 

Examples and usage: Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )