ip -4 addr show eth0 | awk '/inet / {print $2}' | cut -d/ -f1 上記で取得できます。 以下、解説です。 ip -4 addr show eth0 ip -4 addr show e···