摘要: shell脚本编写--清理日志文件 日志清理 tomcat jar nginx access 阅读全文
posted @ 2022-01-12 18:29 执手仗剑天涯 阅读(832) 评论(0) 推荐(0)
摘要: shell脚本编写--awk使用小技巧之一 于2022年1月10日,写遇到,特地整理了一些 1.过滤 简洁高级的感觉 一般可以这样子实现。 [root@master ~]# zookeeper_node=`cat /etc/hosts|grep zk|awk '{print $1}'`;echo ${zookeeper_node[0]} 19 阅读全文
posted @ 2022-01-12 18:11 执手仗剑天涯 阅读(92) 评论(0) 推荐(0)