[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: [NOVICE] slette [] med sed ??



>>>>> "Kasper" == Kasper Edwards <sslug@sslug> writes:
Kasper> Hvordan for man sed til at slette et ord i klammer som: [TEST]
Kasper> ??
Kasper> Forsøg som: sed s/TEST// minfil.log virker men [] bliver
Kasper> tilbage
Kasper> sed s/[TEST]// minfil.log får sed til at slettet det første T
Kasper> så der står [ETS]

Nu er jeg ikke en haj til regulære udtryk (faktisk ret grøn), men jeg
har dog opdaget, at kantede parenteser har speciel brug i dem, som du
også har opdaget. De skal derfor 'escapes'. Prøv med sed s/\[TEST\]//.

Martin


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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