[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAB+qc9C1Pi6MxFGwph8TGHPbm92iyibj61yMNHgXT-MccSa68A@mail.gmail.com>
Date: Tue, 31 Mar 2020 15:32:19 +0300
From: Vaidas BoQsc <vaidas.boqsc@...il.com>
To: netdev@...r.kernel.org
Subject: Output only currently active local IP addresses
I would like to know the correct robust way to obtain/get local IPv4
addresses of all active currently network interfaces.
I tried a command: ip --brief address
however it provides a lot of unecessary information: interface name,
status of UP/Down and lots of other additional information and
formatting, when all I need is only literal ip addresses as an output.
I couldn't find a way to get such output without using parsing tools
and piping. Is it true that ip command does not have a way to display
currently active ip addresses as a simple list without any formatting
and without inactive interfaces' information and pseudo interfaces
like ip address of localhost?
Powered by blists - more mailing lists