change tr commands, use sha512sum