Re: find -execdir + sed problem
On Thu, Jan 08, 2009 at 12:03:38 +0200, Micha Feigin (michf@post.tau.ac.il) wrote:
> I'm trying to fix the file suffix on some file in my directories using sed and
> find but for some reason sed doesn't match the string in this manner, that is
> running
> find . -name "*.JPG.jpg" -execdir echo `echo '{}' | sed -e 's/\(.*\).JPG.jpg/\1.jpg/' -` \;
find . -type f | xargs rename s/JPG\.jpg/jpg/
--
Bob Cox. Stoke Gifford, near Bristol, UK.
Please reply to the list only. Do NOT send copies directly to me.
Debian on the NSLU2: http://bobcox.com/slug/
Reply to: