Pattern matching

Use and complete the template provided. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data: How do you locate all nonblank lines that don't begin with #, /*, or //

  2. Relevant commands, code, scripts, algorithms:
    grep and regular expressions

  3. The attempts at a solution (include all code and scripts):
    grep ^[^ # \/* \//] file

  4. School (University) and Course Number:
    UB CS 615

For a start, remove the spaces in brakets:

ant:/home/vbe $ grep ^[^ # \/* \//] greptest
grep: [] imbalance.
ant:/home/vbe $ more greptest
1. The problem statement, all variables and given/known data: How do you locate 
all 
nonblank lines that don't begin with #, /*, or //
#  1
/* 2
// 3
Ha *
plpl *
*  a
/  b
/# c
ant:/home/vbe $ grep ^[^#\/*\//] greptest
1. The problem statement, all variables and given/known data: How do you locate all 
nonblank lines that don't begin with #, /*, or //
Ha *
plpl *

I am not getting you exactly..removing spaces ..
I want exact solution..if u can help me..thanks..

Did you look at my screen hard copy? and the difference at execution of the 1rst attempt -1rst line and second (spaces removed...)?