SyntaxFix
Write A Post
Hire A Developer
Questions
if you just want the ip address try this:
#Variable to store ip address ipaddr=$(hostname -I) echo "$ipaddr"