How to Get List of IP addresses in BASH using hostname and tr commands?
The hostname shows or sets the system’s hostname. The option ‘-I’ or ‘–all-ip-addresses’ list the IP addresses on one single line. -i, --ip-address Display the network address(es) of the …