Space in foldername inside a FIND loop I´m working on a script that need to read files inside a FIND loop.
Something like this :

DIRINI=/Volumes/dados/App\ Data/DATABASE.noindex/30000
for FILE  in `find "$DIRINI"  -type f ` ; do
stat $FILE
stat "$FILE"
stat '$FILE'
done


The problem is : when the foldername  has a space inside , i  have to put the var $DIRINI inside a ""  and this  make FIND works , but  the other commands inside the loop that use $DIRINI  does not work ,   they split  foldername in two use one half in each cicle.

Does someone have an idea of what can i do ?
Thanks in advance
Don‘t loop over results from find, there are too many things which can and will go wrong. Use

find "$DIRINI" -type f -exec stat {} \;


or

find "$DIRINI" -type f -print0 | xargs -0 stat


instead.