[TriLUG] Negative search in Vi

MG mgmonza at gmail.com
Sun Apr 13 12:48:59 EDT 2008


I'm probably missing something here, but:


grep -A 1 sometext somefile


give the next line after the matching one, so it would logically be the 
next one without the expression.


MG

Scott Lambdin wrote:
> Is there a way to search for the next line without a certain pattern?  I'm
> not figuring it out.
>
> --Scott
>
>   



More information about the TriLUG mailing list