Linux bash script to extract IP address

前端 未结 13 2422
我在风中等你
我在风中等你 2020-12-04 15:44

I want to make big script on my Debian 7.3 ( something like translated and much more new user friendly enviroment ). I have a problem. I want to use only some of the informa

13条回答
  •  感情败类
    2020-12-04 16:18

    May be not for all cases (especially if you have several NIC's), this will help:

    hostname -I | awk '{ print $1 }'
    

提交回复
热议问题