shell问题,求大神解答
比如有个txt文本:127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1...
比如有个txt文本:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.4.4 test-api.abc.ecf.cloud
怎样获取192.168.4.4和test-api.abc.ecf.cloud,然后分别存到变量a和b中 展开
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.4.4 test-api.abc.ecf.cloud
怎样获取192.168.4.4和test-api.abc.ecf.cloud,然后分别存到变量a和b中 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |