[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] Fjernelse af efterfølgende whitespaces?



Jesper Krogh wrote:
> Jeg troede egentligt at man kunne lave regex-search-and-replace med
> vi's:
> 
> :1,$s/regex//g
> 
> men det virker ikke rigtigt.
> 
> Jeg har en fil med:
> 
> lidt tekst ( her kommer så 180 spaces som jeg gerne vil have væk )
> 
> hvilket jeg troede jeg kunne gøre med:
> :1,$s/\s*$//g
> 
> Men det virker ikke rigtigt.. 

:g/\s*$/s///

virker for mig.

Mvh Hans Christian Studt
Private +45 29 23 54 14
Business +45 36 14 54 14
mailto:sslug@sslug http://hc.studt.dk


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:44 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] *