Re: GREP Help
- From: SINNER <99nesorjd@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 17:09:48 GMT
* 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 ...
.
- References:
- GREP Help
- From: M
- GREP Help
- Prev by Date: Re: OT: MS software has gone over the line this time! [even further OT]
- Next by Date: Re: Pan 0.14x newsreader RPM for Mandriva?
- Previous by thread: Re: GREP Help
- Next by thread: K3b help
- Index(es):