On Tue, Apr 30, 2002 at 03:28:34PM -0700, Linux Rocks ! wrote:
> So... Ive had much luck with searching and replacing, however I cant figure 
> out how to replace
> thumbs/
> with m
> find ./*.html -type f | xargs perl -p -i.orig -e \ 's/thumbs/m/gi'
> leaves me with:
> <img src="m
> where I want:
> <img src="m1.jpg" blah blah blah
> 
> I even tried 
> find ./*.html -type f | xargs perl -p -i.orig -e \ 's/thumbs//m/gi'
> but ofcoures it squeeled at me... I also tried replacing /'s with "'s 
> (quotes), so... anyone know how to use s/ and include /'s as part of the 
> search/replace string?

You need a \, or you can use something other than /, like s#this#that#
or s,this,that,

--
<[EMAIL PROTECTED]>

Reply via email to