Re: find -execdir + sed problem

2009-01-08 Thread Alex Samad
On Thu, Jan 08, 2009 at 12:03:38PM +0200, Micha Feigin 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

Re: find -execdir + sed problem

2009-01-08 Thread Micha Feigin
On Thu, 08 Jan 2009 11:24:27 +0100 Sven Joachim wrote: > On 2009-01-08 11:03 +0100, Micha Feigin 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 . -n

Re: find -execdir + sed problem

2009-01-08 Thread Rainer Kluge
Bob Cox schrieb: On Thu, Jan 08, 2009 at 12:03:38 +0200, Micha Feigin (mi...@post.tau.ac.il) wrote: find . -type f -exec echo `echo '{}' | tr "[:upper:]" "[:lower:]"` \; also fails to convert the file to lower case for some reason (same problem, doesn't change the case, as if it doesn't see th

Re: find -execdir + sed problem

2009-01-08 Thread Bob Cox
On Thu, Jan 08, 2009 at 12:03:38 +0200, Micha Feigin (mi...@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 `

Re: find -execdir + sed problem

2009-01-08 Thread Bob Cox
On Thu, Jan 08, 2009 at 12:03:38 +0200, Micha Feigin (mi...@post.tau.ac.il) wrote: > find . -type f -exec echo `echo '{}' | tr "[:upper:]" "[:lower:]"` \; > > also fails to convert the file to lower case for some reason (same problem, > doesn't change the case, as if it doesn't see the characte

Re: find -execdir + sed problem

2009-01-08 Thread Sven Joachim
On 2009-01-08 11:03 +0100, Micha Feigin 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.jp

find -execdir + sed problem

2009-01-08 Thread Micha Feigin
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/' -` \; on a directory with 2005_10_09-03_05_11.J