SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to get a space separated list of your IPs, you can use the hostname command with the --all-ip-addresses (short -I) flag
hostname
--all-ip-addresses
-I
hostname -I
as described here: Putting IP Address into bash variable. Is there a better way?