#!/usr/bin/bash
# Get the CPU model name from /proc/cpuinfo and the number of CPU of this kind
model_name=$(grep "model name" /proc/cpuinfo | head -1 | cut -d: -f 2 )
number_of_cpu=$(grep -c "${model_name}" /proc/cpuinfo)

printf "this machine has %d CPUs of model %s" "${number_of_cpu}" "${model_name}"
