Get ip

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_get_ip

Purpose

Print the first address listed by hostname -I.

Output

Writes the first whitespace-delimited address, if any.

Returns

Returns the pipeline status; an empty result does not necessarily produce an error.

Usage

  sgnd_get_ip