find -type f | egrep '\./[0-9][0-9]\.pdf' | while read line;do out=0`echo $line | awk -F/ '{print $2}'`;mv $line $out;done
1
1
0
0
0