Re: Directories names with spaces inside

2006-05-27 Thread Noam Meltzer
this will do the trick:IFS="\n" for f in `find .  -name '*.c*'`; do file $f; doneOn 5/25/06, Amos Shapira < [EMAIL PROTECTED]> wrote:On 5/25/06, Michael Sternberg < [EMAIL PROTECTED]> wrote:> I need to perform some task on specific files recusrsively. Problem is> that directories names can contain

Re: Directories names with spaces inside

2006-05-25 Thread Amos Shapira
On 5/25/06, Michael Sternberg <[EMAIL PROTECTED]> wrote: I need to perform some task on specific files recusrsively. Problem is that directories names can contain spaces. Something like that (in /bin/sh) does not works: for f in `find . -name '*.c*'`; do file $f; done That's what "find -print

Re: Directories names with spaces inside

2006-05-25 Thread Omer Zak
On Thu, 2006-05-25 at 10:01 +0300, Michael Sternberg wrote: > I need to perform some task on specific files recusrsively. Problem is > that directories names can contain spaces. Something like that (in > /bin/sh) does not works: > > for f in `find . -name '*.c*'`; do file $f; done > > it choks

Directories names with spaces inside

2006-05-25 Thread Michael Sternberg
I need to perform some task on specific files recusrsively. Problem is that directories names can contain spaces. Something like that (in /bin/sh) does not works: for f in `find . -name '*.c*'`; do file $f; done it choks on directories with spaces.. ==