I tried using pound signs too... like this: find ./*.html -type f | xargs perl -p -i.orig -e \ 's#thumbs/#m/gi' but it gave me an error... So I tried it again like find ./*.html -type f | xargs perl -p -i.orig -e \ 's#thumb s/#m#gi' after your message, and it worked! I guess I was mixing my #'s and my/'s!
Thanks! Jamie Sometime just before Tuesday 30 April 2002 05:09 pm Jacob Meuser Wrote about:[EUG-LUG:2488] Re: asynchronous file access: ? use chattr +S ?g : 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, -- for setting/changing your eug-lug mailinglist subscription use this website: http://wWw.RockSolidNetworks.com/eug-lug.html no microsoft products were used to produce this message.
