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