hi friends..........

hello friends ........
i want to visit the directory recusvely through and shell script . and want to get the output of " stat " command for each file .i tried by this way but unable to visit the each file .

#!/bin/bash
echo "enter the file name"
read file
fun()
{
ls $file >file_store1
while read i
do
if [ -d $i ]
then
cd $i
fun ;
else
stat $i
fi
done < file_store
}
fun ;

i want some thing like this ..
if suppose there is directory

dir --> file1 file2 dir1 dir2 dir3 file3
and if inside dir1--> file11 file12 dir11 dir12
and inside dir11 -->file111 file112
then i want to get the output for every file of-------- stat------------command
like for fil1 file2 file11 file12 file111 and so ..on ........

find /path/to/start  -type f  -exec stat {} \;

plz tell me how will i use this code

type it in the shell and press enter.
i recomend you to read the manpage for find.
sopecificly the topcis about -type and -exec