当前位置:网站首页>Shell common script: get the IP address of the network card
Shell common script: get the IP address of the network card
2022-07-25 13:05:00 【Uh huh**】
ip.sh
#/bin/bash
ipAddr=$(ip addr show | grep inet | grep -v inet6 | grep '/24' | awk '{print $2}' | awk -F '/' '{print $1}')
echo " network card IP Address :${ipAddr}"

边栏推荐
- Mysql 远程连接权限错误1045问题
- Detailed explanation of flex box
- go : gin 自定义日志输出格式
- Clickhouse notes 03-- grafana accesses Clickhouse
- 卷积神经网络模型之——VGG-16网络结构与代码实现
- [advanced C language] dynamic memory management
- Detailed explanation of switch link aggregation [Huawei ENSP]
- 手写一个博客平台~第一天
- 【视频】马尔可夫链蒙特卡罗方法MCMC原理与R语言实现|数据分享
- conda常用命令:安装,更新,创建,激活,关闭,查看,卸载,删除,清理,重命名,换源,问题
猜你喜欢

零基础学习CANoe Panel(12)—— 进度条(Progress Bar)

B tree and b+ tree

Moving Chinese figure liushenglan

Seven lines of code made station B crash for three hours, but "a scheming 0"

485通讯( 详解 )

感动中国人物刘盛兰

艰辛的旅程

Common operations for Yum and VIM

Zero basic learning canoe panel (16) -- clock control/panel control/start stop control/tab control

交换机链路聚合详解【华为eNSP】
随机推荐
485 communication (detailed explanation)
感动中国人物刘盛兰
SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable
Chapter5 : Deep Learning and Computational Chemistry
Mid 2022 review | latest progress of large model technology Lanzhou Technology
Requirements specification template
卷积神经网络模型之——GoogLeNet网络结构与代码实现
Is the securities account opened by qiniu safe? How to open an account
2022 年中回顾 | 大模型技术最新进展 澜舟科技
Atcoder beginer contest 261 f / / tree array
[CSDN year-end summary] end and start, always on the way - "2021 summary of" 1+1= Wang "
What does the software testing process include? What are the test methods?
pytorch创建自己的Dataset加载数据集
Docekr学习 - MySQL8主从复制搭建部署
Vim技巧:永远显示行号
[advanced C language] dynamic memory management
零基础学习CANoe Panel(16)—— Clock Control/Panel Control/Start Stop Control/Tab Control
Oran special series-21: major players (equipment manufacturers) and their respective attitudes and areas of expertise
需求规格说明书模板
A hard journey