1 min read

View a config file without comments

Sometimes you have a config file that has is heavily annotated (which is great). But sometimes you just want to see the actual configuration without all that help text.

Use grep’s -v (invert) option:

cat config | grep -v \#

(Note that the # has to be escaped.)