Re: Deleting some lines from a log file

2007-03-27 Thread Jean-Rene David
* Eddine [2007.03.27 09:45]: > ENTRY > > 184 > 185 > **; > 186 * PGMs Complexes 1 : enable - O : disable > *; > 187 > *

Re: Deleting some lines from a log file

2007-03-27 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27-Mar-07, at 9:01 AM, Eddine wrote: Hi I have to clean up a log file. I want to exclude/delete lines that start with a number or "MPRINT" : {snippage} I first tyred to identify all numbers at a beginning of a line, but for instance when doing

Re: Deleting some lines from a log file

2007-03-27 Thread Eddine
Afterwards It seems so simple with your help Many thanks to you Tom, Tim and Vim community ! Eddine 2007/3/27, Tom Whittock <[EMAIL PROTECTED]>: :g/^MPRINT/d :g/^\d\+/d should do more or less what you want. Cheers.

Re: Deleting some lines from a log file

2007-03-27 Thread Tim Chase
> Can you tell me how I have to do to delete those lines beginning by > numbers or MPRINT from my file ? Though I'm not sure I followed your examples, if this is all you want, the following should do what your above-summary describes: :g/^\(\d\|MPRINT\)/d That breaks down as :g/.../ on ev

Re: Deleting some lines from a log file

2007-03-27 Thread Tom Whittock
:g/^MPRINT/d :g/^\d\+/d should do more or less what you want. Cheers. On 27/03/07, Eddine <[EMAIL PROTECTED]> wrote: Hi I have to clean up a log file. I want to exclude/delete lines that start with a number or "MPRINT" : ENTRY 184 185 *

Deleting some lines from a log file

2007-03-27 Thread Eddine
Hi I have to clean up a log file. I want to exclude/delete lines that start with a number or "MPRINT" : ENTRY 184 185 **; 186 * PGMs Complexes 1 : enable - O : disable