Do you want to remove and ignore all comment lines from your Unix or Linux config files? Try the simple grep syntax:
grep -E -v "^#|^$" /path/to/file.conf
grep -Ev 'regex' nginx.conf | bat -l nginx
See https://www.cyberciti.biz/faq/shell-display-uncommented-lines-only/ for more info. #linux #unix #freebsd