: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  
*----------------------------------------------------------------------------------------*;
186  *   PGMs Complexes               1 : enable - O : disable
                       *;
187  
*----------------------------------------------------------------------------------------*;123

188
189       %include "&pgm.MainComplex.sas"    ; ** Macro principale
Base et Queries **;
NOTE: %INCLUDE (level 1) file E:\IFM
      2005-01\gravure_2007_03_15\BRD_04-11-J\Database\Programs\MainComplex.sas
is file E:\IFM
      2005-01\gravure_2007_03_15\BRD_04-11-J\Database\Programs\MainComplex.sas.

269 
+*----------------------------------------------------------------------------------------*;
MPRINT(MAINCOMPLEX):
*----------------------------------------------------------------------------------------*;



RESULT :

NOTE: %INCLUDE (level 1) file E:\IFM
      2005-01\gravure_2007_03_15\BRD_04-11-J\Database\Programs\MainComplex.sas
is file E:\IFM
      2005-01\gravure_2007_03_15\BRD_04-11-J\Database\Programs\MainComplex.sas.

*----------------------------------------------------------------------------------------*;


I first tyred to identify all numbers at a beginning of a line, but
for instance when doing a substitution I cannot find the good regex
(for a try :%s/^[0-9]*/TEST/ didn't work).

Can you tell me how I have to do to delete those lines beginning by
numbers or MPRINT from my file ?

Many thanks.

Eddine.

Reply via email to