perl -e 'while(<>){chomp;@z=`find . -name "$_"`;unlink $_ if($#z);}' < temp.txt