N = hostname
echo $N //Output: ABC123
echo $N | tr [:upper:] [:lower:] //Output: abc123
N = $(echo $N | tr [:upper:] [:lower:]) //Output: Command not found
I can modify the hostname using tr and send it to the terminal, but I can't put it back into a variable. Why?