linux shell + store value in var + print value in a file code example Example: save output of command to craible bash password=$(openssl rand -base64 32) echo $password