sed replacement does not work

Posted by Robin Hood on Stack Overflow See other posts from Stack Overflow or by Robin Hood
Published on 2010-04-02T10:03:56Z Indexed on 2010/04/02 10:13 UTC
Read the original article Hit count: 254

Filed under:
|

Hello, I have trouble using sed. I need to replace some lines in very deprecated HTML sites which consist of many files. My script does not work and I do not why. When I tried to find exact pattern with Netbeas it worked.

find . -type f -name "*.htm?" -exec sed -i -r 's/ing\. Šuhajda Dušan\, Mírová 767\, 518 01 Dobruška\, \+420 737 980 333\,/REPLACEMENT/g' {} \;

Where is the mistake? Is there an alternative to replace text without searching regular expression but plain text? Thanks for any respond.

© Stack Overflow or respective owner

Related posts about sed

Related posts about bash