Many a times when manually grepping through a file, there are so many comments that your eyes glaze over and you start to wish there was a way in which you just could show it to display only those lines which have no comments.Is there a way to skip comments with cat or another tool? I am guessing there is a way and it involves a regular-expression. I want it just to display and not actually remove any lines or such. Comments are in the form of # and I'm using zsh as my xterm. 
Is there a way to show only uncommented lines in a text file/script?
text processing;grep;regular expression;zsh;cat
Well, that depends on what you mean by comments.  If just lines without a # then a simple:grep -v '#'might suffice (but this will call lines like echo '#' a comment).  If comment lines are lines starting with #, then you might need:grep -v '^#'And if comment lines are lines starting with # after some optional whitespace, then you could use:grep -v '^ *#'And if the comment format is something else altogether, this answer will not help you.