bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tr: Problem with grep v2.5.1


From: Simon Nieux
Subject: Tr: Problem with grep v2.5.1
Date: Fri, 18 May 2007 13:56:04 +0200 (CEST)



> Message du 18/05/07 à 13h54
> De : "Simon Nieux" <address@hidden>
> A : address@hidden
> Copie à : 
> Objet : Problem with grep v2.5.1
> 
> Hi,
> 
> I use the grep utility intensively. It's a very useful software though it 
> seems there's a problem...
> 
> wget can generate log file.
> I wanted to display only some specific lines with 3 extra lines above them 
> from this log file.
> Then, I wrote the following command :
>     grep -B 3 "\.\.\.[0-9]\{3\}" wget.log
> It works very well.
> Then, I wanted to exclude lines with the string "...200" and the 3 lines 
> above each.
> So, I wrote the following command :
>     grep -B 3 "\.\.\.[0-9]\{3\}" wget.log | grep -v -B 3 "\.\.\.200"
> It doesnt work at all !
> In fact, it removes only the last line who match from the precedent response 
> but leaves the 3 lines above.
> And surprisingly it leaves all the other lines who match...
> 
> Is it the user who does wrong or the software ?
> 
> I hope this will help.
> 
> Best regard.
> 
> Simon Nieux
> 
> P.S. 1 : Right now, I don't have the time even perhaps the skill to dive into 
> the source code.
> 
> P.S. 2 : My configuration is :
>     Red Hat Fedora Core 4
>     Kernel 2.6.13-1.1532_FC4
>     KDE 3.4.2-0.fc.4.1
>     Konsole 1.4.2
>     Grep 2.5.1
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]