[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



Frank Vestergaard Pedersen wrote:
<klip>
Jeg har forsøgt noget i stil med:

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

</klip>

Man må godt bruge andre separator tegn i sed end "/" prøv evt. dette:

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

/Frank




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

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

Med venlig hislen
Egon Andersen

--
* Talura ApS         * Phone: +45 43 52 50 00 *
* Vibeholms Vænge 69 *                        *
* DK-2635  Ishøj     * mailto:sslug@sslug  *
* CVR 25 62 09 09    * http://www.talura.dk   *


 
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] *