Skip to content

Instantly share code, notes, and snippets.

@geekman
Created May 14, 2020 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/47b7c5e8a3e99e362f1b10ff32d23794 to your computer and use it in GitHub Desktop.
Save geekman/47b7c5e8a3e99e362f1b10ff32d23794 to your computer and use it in GitHub Desktop.
snippet to look for effective config lines in config files
# look for non-commented, non-empty lines
grep -v '^\s*\(#.*\)\?$' /etc/someconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment