分类: LINUX
2010-01-15 11:19:00
recursive () { first_directory=$1 cd $first_directory directory_array=(*); for directory in ${directory_array[@]}; do if [ -d $directory ] ; then (( directory_count += 1 )) recursive $directory touch * -c -m cd .. fi done } recursive $PWD |