strip comments and blank spaces out of file for viewing

 
~ $
grep -v \# <text file name> | grep -v ^$
grep

Description

I use this command a lot to view enabled options in a config file, while stripping out any comments.




Shodan® All rights reserved