[TriLUG] Negative search in Vi

MG mgmonza at gmail.com
Mon Apr 14 21:32:18 EDT 2008


Ah.  That's a big one alright.

MG

Scott Lambdin wrote:
> Just the part about wanting to do it in vi.  ^_^
>
> --Scott
>
>
> On 4/13/08, MG <mgmonza at gmail.com> wrote:
>   
>> 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
>>>
>>>
>>>       
>> --
>> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
>> TriLUG Organizational FAQ  : http://trilug.org/faq/
>> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>>
>>     
>
>
>
>   



More information about the TriLUG mailing list