x=$(find /home -name .rhost 2>/dev/null) for i in $x; do $(echo $I | cut -d/ -f3);z="$z $y" rm $I;done echo "Notice: $z" | mail root@example.com