[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: [TEKNIK] sed regular expression driller mig



Michael Rasmussen wrote:
On Fri, 10 Aug 2012 12:21:12 +0200
Egon Andersen <sslug@sslug> wrote:

sed -c -i_orig {s/\(den fejlagtige tekst\)/                 /} *.txt

Jeg får fejlmeddelelsen:
sed: -e udtryk nr. 1, tegn 7: unterminated `s' command

Prøv: sed -c -i_orig {s/\\\(den fejlagtige tekst\\\)/} *.txt


Det er netop sådanne escapes jeg har rodet frem og tilbage med uden jeg har fundet de vise sten :-(

sed -c -i_orig {s/\\\(den fejlagtige tekst\\\)/} *.txt
sed: -e udtryk nr. 1, tegn 8: unterminated `s' command

sed -c -i_orig {s/\\\(den\ fejlagtige\ tekst\\\)/} *.txt
sed: -e udtryk nr. 1, tegn 29: unterminated `s' command

Med venlig hilsen
Egon Andersen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2012-09-01, 02:01 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] *