Invert match grep

Remove comment and blank lines from a config file

grep -v '^#' /etc/nginx/nginx.conf | grep -v '^\s*$'