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
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
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
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..
==