Use grep to view a file without comments

To view the contents of a fiule but remove comments and new lines you can use this excellent little command. It will remove all lines that start with # or a new line, this is particulaly useful for viewing a config file that has 99% comments and a handful of actual values(E.G OpenStack config files)

grep -v -e "#" -e "^$" keystone.conf