Skip to content

Instantly share code, notes, and snippets.

@dboyd13
Created May 11, 2017 08:03
Show Gist options
  • Save dboyd13/7ac269b65cc2f0af2c6b0ec4d14ca69c to your computer and use it in GitHub Desktop.
Save dboyd13/7ac269b65cc2f0af2c6b0ec4d14ca69c to your computer and use it in GitHub Desktop.
grep - no comments, blank lines
grep -v '^$\|^\s*#'
#consider setting up an alias in ~/.bash_aliases for example
alias db="grep -v '^$\|^\s*#'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment