So I am TRYING to make a bash file that rotates my MAC address every 10 minutes with a random hexadecimal number assigned each time. I would like to have a variable called random_hexa
assigned to the result of this command: openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
. I would then take the variable and use it later on in the script.
Any Idea how to take the result of the openssl
command and assign it to a variable for later use?
Thanks!