shell script for recursive process.