Re: GREP Help



* M wrote in alt.os.linux:
Is there a wa with grep to extract all lines that do not begin with "#"? I
have tried the following.

grep -v '#' /etc/my.conf

That gives me the lines that do not contain # but I want the lines that do
not begin with it.

[11:07 AM][J:0][sinner@~]$ cat test.bak
#1231
1231#65464
asdqw#
[11:07 AM][J:0][sinner@~]$ grep -v ^# test.bak
1231#65464
asdqw#


--
David
I feel ... JUGULAR ...
.