Replace any sequence of 10 alphanumeric characters with a randomly generated 10-character string generated by the OpenSSL command.
sed 's/[a-zA-Z0-9]\{10\}/`openssl rand -base64 20 | tr -d "=+/" | cut -c-10`/g'