SyntaxFix
Write A Post
Hire A Developer
Questions
I would Use Hostname -L to get just the IP to use as a variable in a script.
Hostname -L