Task: Save first IP address of domain 'google.com' in 'address' variable and display it
Command: address=$(dig +short google.com | grep -E '^[0-9.]+$' | head -n 1) && echo $address
Equivalent command: address=$(dig +short google.com | grep -m 1 '^[0-9]' | head -n 1) && echo $address