# myhost=CNTX-$(cat /sys/class/net/eth0/address | cut -b 10,11,13,14,16,17)
# hostname ${myhost^^}
#!/bin/bash str="ApPlE" uppercase=${str^^} lowercase=${str,,} echo "Uppercase: ${uppercase}" echo "Lowercase: ${lowercase}"
echo "192.168.10.19 happycpu-P620.local" | sudo tee -a /etc/hosts