Linux/BSD command line cheat sheet

From Mann Systems
Jump to: navigation, search

Grep all non-blank, non-commented lines from file:

$ grep -Eiv '^blank:*(#|$)' file