O ancor più sinteticamente:
codice:
echo "$nome `grep -c $nome turni.txt`" > turni_$nome.txt