Shell script to copy perticular file from directories recursively

view story

http://www.unix.com – I have directory path in which there are several sub directories. In all these sub dir there will be one env.cnf file. I want to copy this env.cnf file from each sub dir's and place them in destination path by creating same filename as sub dir_env.cnf. After copying env.cnf files from source to destination dir, I have to run few unix commands(grep) on each files and print the grep command o/p in result files in output dir. I have seen that we can use the below command to do the recursive file copy part but don't know how to process grep command on each files Code: find /src_path/t (HowTos)