Find all files with the extension .jpg in the current directory and its subdirectories, then copy the file /etc/hosts to each of the 5 found files, and name the copied file hosts.copy.
find ./ -name '*.jpg' | xargs -n5 cp /etc/hosts {}/hosts.copy