[TriLUG] Negative search in Vi

MG mgmonza at gmail.com
Sun Apr 13 13:10:14 EDT 2008


If you didn't want the original line,


grep -A 1 sometext somefile | grep -v sometext


But I'm probably missing something pretty obvious...


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