[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [VI] Slette linje med text pattern



On Tue, 21 Jun 2005 23:10:27 +0200
Mads Martin Joergensen <sslug@sslug> wrote:

> Hejsa,
> 
> Hvordan finder jeg alle linjer med f.eks 'foo' på linjen og sletter
> dem? Eller måske udfører en anden kommando på linjen.
> 
slette:
:g/foo/d

generelt så kan du erstatte d med enhver anden kommando 

feks.
:g/foo/t$ 
smider en kopi af alle linjer indeholdende foo nederst i filen. 

-- 
   Kim Schulz   | Fundanemt Content Management system:         
 Geek by nature | http://www.fundanemt.com                    
   schulz.dk    | http://www.fundausers.org                    


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:45 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *