Skip to main content

You are here

Exclude comments and empty lines from file

Every so often theirs the need to view a configuration (usually a large one), and you want an easy way to exclude all comments and empty lines:

egrep -v '^(#|$)' your-config-file.cfg
Premium Drupal Themes by Adaptivethemes