echo $(mkpasswd -m sha-512 -S $(grep ^$(echo ${name} | cut -d: -f2): /etc/shadow | cut -d: -f2 | cut -d$ -f3) $(echo ${name} | cut -d: -f3)) | grep $(grep ^$(echo ${name} | cut -d: -f2): /etc/shadow | cut -d: -f2)
Another one of those days …
echo $(mkpasswd -m sha-512 -S $(grep ^$(echo ${name} | cut -d: -f2): /etc/shadow | cut -d: -f2 | cut -d$ -f3) $(echo ${name} | cut -d: -f3)) | grep $(grep ^$(echo ${name} | cut -d: -f2): /etc/shadow | cut -d: -f2)
Another one of those days …