read_file() { local dir=$1 echo "dir:$dir" local loop
for loop in `ls $dir`
do if[-d $dir$loop]; then if[$loop="temp"];then echo "skip" continue fi read_file $dir$loop/ elif [-f $dir$loop]; then echo "file name :$dir$loop" cat $dir$loop>/dev/null fi done }