This command will generate a random 8-character password containing numbers and uppercase letters and save it to a file called rainbow_password.txt.
shuf -ez 0-9 A-Z | head -c8 | tee rainbow_password.txt