【shell中的awk练习】

1、获取根分区剩余大小 [[email protected] ~]# df -h | awk ‘//$/ {print $4}’ 15G 2、获取当前机器ip地址 [[email protected] ~]# ifconfig ens33 | awk ‘/inet / {print $2}’ 192.168.131.108 3、统计出apache的access.log中访问量最多的5个IP [[e
相关文章
相关标签/搜索