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 on directories with spaces..

Try:

find . -name \*.c\* -exec file \{\} \;

(I tested it under /bin/bash on a directory named 'spa ce', and it
worked for me.)
                                            --- Omer

-- 
You haven't made an impact on the world before you caused a Debian
release to be named after Snufkin.
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to