grep -v ^# file > file_without_comments
This is a simple way to get rid of comments in files.
Need to quickly remove commented-out lines? Discover a simple way with `grep` and get rid of comments from files in a flash!
grep -v ^# file > file_without_comments
This is a simple way to get rid of comments in files.