shell convert variable to lowercase code example Example: bash variable lowercase # In Bash 4.0 a=DHCP echo "${a,,}" # Output: dhcp