Re: [SLUG] grep question

2008-04-13 Thread Amos Shapira
On Sun, Apr 13, 2008 at 9:41 AM, Alex Samad [EMAIL PROTECTED] wrote: Try grep -Ev '^(\W*;|$)' great that works, (i changed to \s* instead, also tried the [[:space:]] and it worked) I don't understand hwy i need to test for ^$, I had thought that once a line test positive for ^\s*; it

Re: [SLUG] grep question

2008-04-13 Thread Alex Samad
On Sun, Apr 13, 2008 at 09:55:13PM +1000, Amos Shapira wrote: On Sun, Apr 13, 2008 at 9:41 AM, Alex Samad [EMAIL PROTECTED] wrote: Try grep -Ev '^(\W*;|$)' great that works, (i changed to \s* instead, also tried the [[:space:]] and it worked) I don't understand hwy i need to test

Re: [SLUG] grep question

2008-04-13 Thread Amos Shapira
On Sun, Apr 13, 2008 at 10:02 PM, Alex Samad [EMAIL PROTECTED] wrote: On Sun, Apr 13, 2008 at 09:55:13PM +1000, Amos Shapira wrote: On Sun, Apr 13, 2008 at 9:41 AM, Alex Samad [EMAIL PROTECTED] wrote: Try grep -Ev '^(\W*;|$)' great that works, (i changed to \s* instead, also tried

Re: [SLUG] grep question

2008-04-13 Thread Alex Samad
On Mon, Apr 14, 2008 at 10:16:32AM +1000, Amos Shapira wrote: On Sun, Apr 13, 2008 at 10:02 PM, Alex Samad [EMAIL PROTECTED] wrote: On Sun, Apr 13, 2008 at 09:55:13PM +1000, Amos Shapira wrote: On Sun, Apr 13, 2008 at 9:41 AM, Alex Samad [EMAIL PROTECTED] wrote: Try grep -Ev

Re: [SLUG] grep question

2008-04-12 Thread Alex Samad
On Sun, Apr 13, 2008 at 08:39:17AM +1000, Alex Samad wrote: Hi I want to look at a config file that uses ; as comments, but I want to look at everything that is not a commented line so I tried grep -v '^\W*;' which sort of works, except it leaves me with blank lines now, how can I not

Re: [SLUG] grep question

2008-04-12 Thread Aníbal Monsalve Salazar
On Sun, Apr 13, 2008 at 08:39:17AM +1000, Alex Samad wrote: so I tried grep -v '^\W*;' which sort of works, except it leaves me with blank lines now, how can I not show the blank lines Try grep -Ev '^(\W*;|$)' -- Red Rosa now has vanished too Bertolt Brecht signature.asc Description: Digital

Re: [SLUG] grep question

2008-04-12 Thread Alex Samad
On Sun, Apr 13, 2008 at 08:56:59AM +1000, Aníbal Monsalve Salazar wrote: On Sun, Apr 13, 2008 at 08:39:17AM +1000, Alex Samad wrote: so I tried grep -v '^\W*;' which sort of works, except it leaves me with blank lines now, how can I not show the blank lines Try grep -Ev '^(\W*;|$)' great